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!
-
lights
-
-
localToNDCMatrix
-
-
localToViewerMatrix
-
-
NDCToLocalMatrix
-
-
NDCToViewerMatrix
-
-
tempray
-
-
viewerToLocalMatrix
-
-
viewerToNDCMatrix
-
-
viewerToWorldMatrix
-
-
worldToViewerMatrix
-
-
Camera()
-
-
getLocalToNDCMatrix(Matrix4)
-
-
getLocalToViewerMatrix(Matrix4)
-
-
getLocalToWorldMatrix(Matrix4)
-
-
getNDCToLocalMatrix(Matrix4)
-
-
getNDCToViewerMatrix(Matrix4)
-
-
getNDCToWorldMatrix(Matrix4)
-
-
getOldOrientation(Quaternion)
-
-
getOldPosition(Point3)
-
-
getOrientation(Quaternion)
-
-
getPosition(Point3)
-
-
getProjection()
-
-
getRay(float, float, Ray3)
- Convert a point in normalized device coordinates to a ray
in viewer space.
-
getViewerToLocalMatrix(Matrix4)
-
-
getViewerToNDCMatrix(Matrix4)
-
-
getViewerToWorldMatrix(Matrix4)
-
-
getWorldToLocalMatrix(Matrix4)
-
-
getWorldToNDCMatrix(Matrix4)
-
-
getWorldToViewerMatrix(Matrix4)
-
-
move(float, float, float)
-
-
move(Vector3)
-
-
moveTo(float, float, float)
-
-
moveTo(Point3)
-
-
pitch(float)
-
-
recomputeMatrices()
-
-
roll(float)
-
-
rotate(Quaternion)
- Modify the orientation of the camera.
-
setOrientation(Quaternion)
-
-
setPosition(Point3)
-
-
setProjection(Projection)
-
-
synchOldValues()
- Set the old values to the current values.
-
yaw(float)
-
lights
protected List lights
viewerToLocalMatrix
protected Matrix4 viewerToLocalMatrix
localToViewerMatrix
protected Matrix4 localToViewerMatrix
worldToViewerMatrix
protected Matrix4 worldToViewerMatrix
viewerToWorldMatrix
protected Matrix4 viewerToWorldMatrix
NDCToViewerMatrix
protected Matrix4 NDCToViewerMatrix
viewerToNDCMatrix
protected Matrix4 viewerToNDCMatrix
NDCToLocalMatrix
protected Matrix4 NDCToLocalMatrix
localToNDCMatrix
protected Matrix4 localToNDCMatrix
tempray
protected Ray3 tempray
Camera
public Camera()
setPosition
public synchronized void setPosition(Point3 position)
setOrientation
public synchronized void setOrientation(Quaternion orientation)
getPosition
public synchronized void getPosition(Point3 point)
getOrientation
public synchronized void getOrientation(Quaternion quat)
setProjection
public synchronized abstract void setProjection(Projection projection)
getProjection
public synchronized abstract Projection getProjection()
getRay
public synchronized void getRay(float x,
float y,
Ray3 ray)
- Convert a point in normalized device coordinates to a ray
in viewer space.
recomputeMatrices
protected final void recomputeMatrices()
getWorldToLocalMatrix
public abstract void getWorldToLocalMatrix(Matrix4 mat)
getLocalToWorldMatrix
public abstract void getLocalToWorldMatrix(Matrix4 mat)
getWorldToViewerMatrix
public synchronized void getWorldToViewerMatrix(Matrix4 mat)
getViewerToWorldMatrix
public synchronized void getViewerToWorldMatrix(Matrix4 mat)
getWorldToNDCMatrix
public synchronized void getWorldToNDCMatrix(Matrix4 mat)
getNDCToWorldMatrix
public synchronized void getNDCToWorldMatrix(Matrix4 mat)
getLocalToViewerMatrix
public synchronized void getLocalToViewerMatrix(Matrix4 mat)
getViewerToLocalMatrix
public synchronized void getViewerToLocalMatrix(Matrix4 mat)
getLocalToNDCMatrix
public synchronized void getLocalToNDCMatrix(Matrix4 mat)
getNDCToLocalMatrix
public synchronized void getNDCToLocalMatrix(Matrix4 mat)
getViewerToNDCMatrix
public synchronized void getViewerToNDCMatrix(Matrix4 mat)
getNDCToViewerMatrix
public synchronized void getNDCToViewerMatrix(Matrix4 mat)
rotate
public final synchronized void rotate(Quaternion rotation)
- Modify the orientation of the camera.
yaw
public final synchronized void yaw(float angle)
pitch
public final synchronized void pitch(float angle)
roll
public final synchronized void roll(float angle)
move
public final synchronized void move(float x,
float y,
float z)
move
public final synchronized void move(Vector3 v)
moveTo
public final synchronized void moveTo(float x,
float y,
float z)
moveTo
public final synchronized void moveTo(Point3 p)
getOldPosition
public final synchronized void getOldPosition(Point3 p)
getOldOrientation
public final synchronized void getOldOrientation(Quaternion q)
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