Class dnx.lr.Camera
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.Camera

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.util.DNXInstancedObject
                   |
                   +----dnx.lr.Camera

public class Camera
extends DNXInstancedObject
Base class for Cameras. Make sure to call recomputeMatrices() at the end of your constructor!

Variable Index

 o lights
 o localToNDCMatrix
 o localToViewerMatrix
 o NDCToLocalMatrix
 o NDCToViewerMatrix
 o tempray
 o viewerToLocalMatrix
 o viewerToNDCMatrix
 o viewerToWorldMatrix
 o worldToViewerMatrix

Constructor Index

 o Camera()

Method Index

 o getLocalToNDCMatrix(Matrix4)
 o getLocalToViewerMatrix(Matrix4)
 o getLocalToWorldMatrix(Matrix4)
 o getNDCToLocalMatrix(Matrix4)
 o getNDCToViewerMatrix(Matrix4)
 o getNDCToWorldMatrix(Matrix4)
 o getOldOrientation(Quaternion)
 o getOldPosition(Point3)
 o getOrientation(Quaternion)
 o getPosition(Point3)
 o getProjection()
 o getRay(float, float, Ray3)
Convert a point in normalized device coordinates to a ray in viewer space.
 o getViewerToLocalMatrix(Matrix4)
 o getViewerToNDCMatrix(Matrix4)
 o getViewerToWorldMatrix(Matrix4)
 o getWorldToLocalMatrix(Matrix4)
 o getWorldToNDCMatrix(Matrix4)
 o getWorldToViewerMatrix(Matrix4)
 o move(float, float, float)
 o move(Vector3)
 o moveTo(float, float, float)
 o moveTo(Point3)
 o pitch(float)
 o recomputeMatrices()
 o roll(float)
 o rotate(Quaternion)
Modify the orientation of the camera.
 o setOrientation(Quaternion)
 o setPosition(Point3)
 o setProjection(Projection)
 o synchOldValues()
Set the old values to the current values.
 o yaw(float)

Variables

 o lights
  protected List lights
 o viewerToLocalMatrix
  protected Matrix4 viewerToLocalMatrix
 o localToViewerMatrix
  protected Matrix4 localToViewerMatrix
 o worldToViewerMatrix
  protected Matrix4 worldToViewerMatrix
 o viewerToWorldMatrix
  protected Matrix4 viewerToWorldMatrix
 o NDCToViewerMatrix
  protected Matrix4 NDCToViewerMatrix
 o viewerToNDCMatrix
  protected Matrix4 viewerToNDCMatrix
 o NDCToLocalMatrix
  protected Matrix4 NDCToLocalMatrix
 o localToNDCMatrix
  protected Matrix4 localToNDCMatrix
 o tempray
  protected Ray3 tempray

Constructors

 o Camera
  public Camera()

Methods

 o setPosition
  public synchronized void setPosition(Point3 position)
 o setOrientation
  public synchronized void setOrientation(Quaternion orientation)
 o getPosition
  public synchronized void getPosition(Point3 point)
 o getOrientation
  public synchronized void getOrientation(Quaternion quat)
 o setProjection
  public synchronized abstract void setProjection(Projection projection)
 o getProjection
  public synchronized abstract Projection getProjection()
 o getRay
  public synchronized void getRay(float x,
                                  float y,
                                  Ray3 ray)
Convert a point in normalized device coordinates to a ray in viewer space.
 o recomputeMatrices
  protected final void recomputeMatrices()
 o getWorldToLocalMatrix
  public abstract void getWorldToLocalMatrix(Matrix4 mat)
 o getLocalToWorldMatrix
  public abstract void getLocalToWorldMatrix(Matrix4 mat)
 o getWorldToViewerMatrix
  public synchronized void getWorldToViewerMatrix(Matrix4 mat)
 o getViewerToWorldMatrix
  public synchronized void getViewerToWorldMatrix(Matrix4 mat)
 o getWorldToNDCMatrix
  public synchronized void getWorldToNDCMatrix(Matrix4 mat)
 o getNDCToWorldMatrix
  public synchronized void getNDCToWorldMatrix(Matrix4 mat)
 o getLocalToViewerMatrix
  public synchronized void getLocalToViewerMatrix(Matrix4 mat)
 o getViewerToLocalMatrix
  public synchronized void getViewerToLocalMatrix(Matrix4 mat)
 o getLocalToNDCMatrix
  public synchronized void getLocalToNDCMatrix(Matrix4 mat)
 o getNDCToLocalMatrix
  public synchronized void getNDCToLocalMatrix(Matrix4 mat)
 o getViewerToNDCMatrix
  public synchronized void getViewerToNDCMatrix(Matrix4 mat)
 o getNDCToViewerMatrix
  public synchronized void getNDCToViewerMatrix(Matrix4 mat)
 o rotate
  public final synchronized void rotate(Quaternion rotation)
Modify the orientation of the camera.
 o yaw
  public final synchronized void yaw(float angle)
 o pitch
  public final synchronized void pitch(float angle)
 o roll
  public final synchronized void roll(float angle)
 o move
  public final synchronized void move(float x,
                                      float y,
                                      float z)
 o move
  public final synchronized void move(Vector3 v)
 o moveTo
  public final synchronized void moveTo(float x,
                                        float y,
                                        float z)
 o moveTo
  public final synchronized void moveTo(Point3 p)
 o getOldPosition
  public final synchronized void getOldPosition(Point3 p)
 o getOldOrientation
  public final synchronized void getOldOrientation(Quaternion q)
 o synchOldValues
  public synchronized void synchOldValues()
Set the old values to the current values. Use this after you've done collision detection, or whenever you want to "jump" the camera to a new position and override any collision detection along the path.

All Packages  Class Hierarchy  This Package  Previous  Next  Index