net.java.joglutils.msg.nodes
Class OrthographicCamera

java.lang.Object
  extended by net.java.joglutils.msg.nodes.Node
      extended by net.java.joglutils.msg.nodes.Camera
          extended by net.java.joglutils.msg.nodes.OrthographicCamera

public class OrthographicCamera
extends Camera


Field Summary
 
Fields inherited from class net.java.joglutils.msg.nodes.Camera
projDirty, projMatrix, viewDirty, viewMatrix
 
Constructor Summary
OrthographicCamera()
           
 
Method Summary
 float getHeight()
          Returns the height, in units, of the volume this orthographic camera views.
 Mat4f getProjectionMatrix()
          Returns the projection matrix associated with this camera's parameters.
protected  Vec3f getRayStartPoint(Vec2f point, Vec3f unprojectedPoint)
          Computes the start point of a ray for picking, given a point in normalized screen coordinates ((0, 0) to (1, 1)) and a 3D point which that point unprojects to.
 float getWidth()
          Returns the width, in units, of the volume this orthographic camera views, assuming the camera's currently-set aspect ratio.
 float getWidth(float aspectRatio)
          Returns the width, in units, of the volume this orthographic camera views, assuming the passed-in aspect ratio.
 void render(GLRenderAction action)
          Support for the built-in GLRenderAction.
 void setHeight(float height)
          Sets the height, in units, of the volume this orthographic camera views.
 
Methods inherited from class net.java.joglutils.msg.nodes.Camera
doAction, getAspectRatio, getFarDistance, getFocalDistance, getNearDistance, getOrientation, getPosition, getViewingMatrix, rayPick, setAspectRatio, setFarDistance, setFocalDistance, setNearDistance, setOrientation, setPosition, unproject, unproject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrthographicCamera

public OrthographicCamera()
Method Detail

getProjectionMatrix

public Mat4f getProjectionMatrix()
Description copied from class: Camera
Returns the projection matrix associated with this camera's parameters.

Specified by:
getProjectionMatrix in class Camera

setHeight

public void setHeight(float height)
Sets the height, in units, of the volume this orthographic camera views. The default height is 2.0 units.


getHeight

public float getHeight()
Returns the height, in units, of the volume this orthographic camera views.


getWidth

public float getWidth(float aspectRatio)
Returns the width, in units, of the volume this orthographic camera views, assuming the passed-in aspect ratio.


getWidth

public float getWidth()
Returns the width, in units, of the volume this orthographic camera views, assuming the camera's currently-set aspect ratio.


getRayStartPoint

protected Vec3f getRayStartPoint(Vec2f point,
                                 Vec3f unprojectedPoint)
Description copied from class: Camera
Computes the start point of a ray for picking, given a point in normalized screen coordinates ((0, 0) to (1, 1)) and a 3D point which that point unprojects to.

Specified by:
getRayStartPoint in class Camera

render

public void render(GLRenderAction action)
Description copied from class: Node
Support for the built-in GLRenderAction. Note that supplying virtual methods in Node subclasses to support various actions is not required due to the framework supporting action methods, but for built-in actions it may make it simpler.

Overrides:
render in class Node