|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.camera.Camera
public class Camera
Contains the camera state.
| Constructor Summary | |
|---|---|
Camera()
|
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies the camera state to the specified renderer. |
float |
getBottom()
Returns the location of the bottom edge of the view frustum at the near plane. |
void |
getCenterRay(Ray3D result)
Populates the supplied object with a ray through the center of the viewport. |
float |
getFar()
Returns the distance to the far clip plane. |
float |
getLeft()
Returns the location of the left edge of the view frustum at the near plane. |
float |
getNear()
Returns the distance to the near clip plane. |
Vector3f |
getNearFarNormal()
Returns a reference to the normal of the near/far clip planes. |
void |
getPickRay(int x,
int y,
Ray3D result)
Populates the supplied object with a ray through the specified viewport coordinates. |
Matrix4f |
getProjection()
Returns a reference to the projection matrix. |
float |
getRight()
Returns the location of the right edge of the view frustum at the near plane. |
void |
getTexGenPlanes(Vector4f s,
Vector4f t,
Vector4f q)
Populates the supplied vectors with texture coordinate generation planes corresponding to the camera projection state. |
float |
getTop()
Returns the location of the top edge of the view frustum at the near plane. |
Rectangle |
getViewport()
Returns a reference to the camera viewport. |
Transform3D |
getViewTransform()
Returns a reference to the camera view transform (the inverse of the world transform). |
Transform3D |
getWorldTransform()
Returns a reference to the camera's current transform in world space. |
Frustum |
getWorldVolume()
Returns a reference to the volume that the camera occupies in the world. |
boolean |
isMirrored()
Determines whether or not the camera is mirrored. |
boolean |
isOrtho()
Determines whether or not the camera is set to an orthographic projection. |
void |
setFrustum(float left,
float right,
float bottom,
float top,
float near,
float far)
Sets the camera frustum parameters. |
void |
setOrtho(float left,
float right,
float bottom,
float top,
float near,
float far)
Sets the camera frustum parameters. |
void |
setPerspective(float fovy,
float aspect,
float near,
float far)
Sets the camera perspective parameters. |
void |
setProjection(Camera ocamera)
Copies the projection parameters of another camera. |
void |
setProjection(float left,
float right,
float bottom,
float top,
float near,
float far,
Vector3f nearFarNormal,
boolean ortho,
boolean mirrored)
Sets the camera projection parameters. |
Box |
transform(Box box)
Transforms and projects a box in world space into window space. |
Box |
transform(Box box,
Box result)
Transforms and projects a box in world space into window space, placing the result in the object provided. |
Vector3f |
transform(Vector3f point)
Transforms and projects a point in world space into window space. |
Vector3f |
transform(Vector3f point,
Vector3f result)
Transforms and projects a point in world space into window space, placing the result in the object provided. |
Box |
transformLocal(Box box)
Transforms and projects a box in world space into window space. |
Vector3f |
transformLocal(Vector3f point)
Transforms and projects a point in world space into window space. |
void |
updateTransform()
Updates the camera transform. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Camera()
| Method Detail |
|---|
public Transform3D getWorldTransform()
public Transform3D getViewTransform()
public Frustum getWorldVolume()
public Rectangle getViewport()
public void setPerspective(float fovy,
float aspect,
float near,
float far)
public void setFrustum(float left,
float right,
float bottom,
float top,
float near,
float far)
public void setOrtho(float left,
float right,
float bottom,
float top,
float near,
float far)
public void setProjection(Camera ocamera)
public void setProjection(float left,
float right,
float bottom,
float top,
float near,
float far,
Vector3f nearFarNormal,
boolean ortho,
boolean mirrored)
public Matrix4f getProjection()
public float getLeft()
public float getRight()
public float getBottom()
public float getTop()
public float getNear()
public float getFar()
public Vector3f getNearFarNormal()
public boolean isOrtho()
public boolean isMirrored()
public void updateTransform()
public void apply(Renderer renderer)
public Box transformLocal(Box box)
public Box transform(Box box)
public Box transform(Box box,
Box result)
public Vector3f transformLocal(Vector3f point)
public Vector3f transform(Vector3f point)
public Vector3f transform(Vector3f point,
Vector3f result)
public void getTexGenPlanes(Vector4f s,
Vector4f t,
Vector4f q)
public void getCenterRay(Ray3D result)
public void getPickRay(int x,
int y,
Ray3D result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||