org.selman.java3d.book.myjava3d
Interface RenderingEngine

All Known Implementing Classes:
AwtRenderingEngine

public interface RenderingEngine

Definition of the RenderingEngine interface. A RenderingEngine can rendering 3D geometry (described using a Java 3D GeometryArray) into a 2D Graphics context.


Method Summary
 void addGeometry(javax.media.j3d.GeometryArray geometryArray)
          Adds a GeometryArray to the RenderingEngine.
 javax.vecmath.Vector3d getLightAngle()
          Get the current View Angle used by the RenderEngine.
 double getScale()
          Get the scale used by the RenderEngine.
 javax.vecmath.Vector3d getScreenPosition()
          Get the current Screen position used by the RenderEngine.
 javax.vecmath.Vector3d getViewAngle()
          Get the current View Angle used by the RenderEngine.
 void render(java.awt.Graphics graphics, org.selman.java3d.book.myjava3d.GeometryUpdater updater)
          Renders a single frame into the Graphics.
 void setLightAngle(javax.vecmath.Vector3d angle)
          Set the current View Angle used by the RenderEngine.
 void setScale(double scale)
          Set the scale used by the RenderEngine.
 void setScreenSize(int width, int height)
          Set the Screen size used by the RenderEngine.
 void setViewAngle(javax.vecmath.Vector3d viewAngle)
          Set the current View Angle used by the RenderEngine.
 

Method Detail

addGeometry

public void addGeometry(javax.media.j3d.GeometryArray geometryArray)
Adds a GeometryArray to the RenderingEngine. All GeometryArrays will be rendered.


render

public void render(java.awt.Graphics graphics,
                   org.selman.java3d.book.myjava3d.GeometryUpdater updater)
Renders a single frame into the Graphics.


getScreenPosition

public javax.vecmath.Vector3d getScreenPosition()
Get the current Screen position used by the RenderEngine.


getViewAngle

public javax.vecmath.Vector3d getViewAngle()
Get the current View Angle used by the RenderEngine. View angles are expressed in degrees.


setViewAngle

public void setViewAngle(javax.vecmath.Vector3d viewAngle)
Set the current View Angle used by the RenderEngine.


getLightAngle

public javax.vecmath.Vector3d getLightAngle()
Get the current View Angle used by the RenderEngine. View angles are expressed in degrees.


setLightAngle

public void setLightAngle(javax.vecmath.Vector3d angle)
Set the current View Angle used by the RenderEngine.


setScreenSize

public void setScreenSize(int width,
                          int height)
Set the Screen size used by the RenderEngine.


setScale

public void setScale(double scale)
Set the scale used by the RenderEngine.


getScale

public double getScale()
Get the scale used by the RenderEngine.