|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.shape.AbstractDrawable
gestalt.render.plugin.Camera
public abstract class Camera
| Field Summary | |
|---|---|
int |
culling
culling modes as found in 'Gestalt'. |
float |
farclipping
distance of the far clipping plane. |
float |
fovy
field of vision (Y) in degrees(!). |
Vector2f |
frustumoffset
defines the percentage in which the frustum is offset from a simetric position. |
float |
nearclipping
distance of the near clipping plane. |
| Constructor Summary | |
|---|---|
Camera()
|
|
| Method Summary | |
|---|---|
void |
add(Drawable theDrawable)
this method is commonly used to store children of a drawable. |
java.lang.Object |
clone()
|
Camera |
copy()
returns a cloned instance of this camera. like in set(Camera) plugins are not copied. |
void |
forward(float theSpeed)
move the camera along its forward direction. |
float |
getDistanceToZeroPlane()
|
static float |
getDistanceToZeroPlane(float theFOVY,
int theViewPortHeight)
|
Vector3f |
getForward()
|
Matrix3f |
getInversRotationMatrix()
|
int |
getMode()
get the camera rotation mode. |
Matrix3f |
getRotationMatrix()
|
Vector3f |
getSide()
|
Vector3f |
getUp()
|
boolean |
isActive()
returns whether the drawable is active. |
Vector3f |
lookat()
|
float[] |
modelviewmatrix()
|
java.util.Vector<CameraPlugin> |
plugins()
|
Vector3f |
position()
|
float[] |
projectionmatrix()
|
void |
reset()
reset the camera to some more or less meaningful values. |
void |
reset(DisplayCapabilities displaycapabilities)
reset the camera to some more or less meaningful values. |
void |
reset(int theWidth,
int theHeight)
reset the camera to some more or less meaningful values. |
Vector3f |
rotation()
|
void |
set(Camera theCamera)
copies properties from one camera. |
void |
setActive(boolean theActive)
|
void |
setLookAtRef(Vector3f theRef)
|
void |
setMode(int theCameraMode)
set the cameras rotation mode. |
void |
setPositionRef(Vector3f thePosition)
|
void |
setRotationRef(Vector3f theRef)
|
void |
setUpVectorRef(Vector3f theRef)
|
void |
side(float theSpeed)
move the camera along its side direction. |
java.lang.String |
toString()
|
Vector3f |
toWorld(float theMouseX,
float theMouseY)
|
void |
up(float theSpeed)
move the camera along its up direction. |
void |
updateRotationMatrix()
the camera matrix needs to be updated after every modification of position or rotation. |
Vector3f |
upvector()
|
Viewport |
viewport()
|
| Methods inherited from class gestalt.shape.AbstractDrawable |
|---|
getSortData, getSortValue, isSortable, setSortValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gestalt.render.Drawable |
|---|
draw |
| Field Detail |
|---|
public Vector2f frustumoffset
public float nearclipping
public float farclipping
public float fovy
public int culling
| Constructor Detail |
|---|
public Camera()
| Method Detail |
|---|
public void reset(DisplayCapabilities displaycapabilities)
displaycapabilities - DisplayCapabilitiespublic java.lang.Object clone()
clone in class java.lang.Objectpublic Camera copy()
public void reset(int theWidth,
int theHeight)
theWidth - inttheHeight - intpublic void reset()
public void set(Camera theCamera)
theCamera - Camerapublic void setMode(int theCameraMode)
theCameraMode - intpublic int getMode()
public void side(float theSpeed)
theSpeed - floatpublic void up(float theSpeed)
theSpeed - floatpublic void forward(float theSpeed)
theSpeed - floatpublic void updateRotationMatrix()
public java.util.Vector<CameraPlugin> plugins()
public Vector3f getForward()
public Vector3f getUp()
public Vector3f getSide()
public Matrix3f getRotationMatrix()
public Matrix3f getInversRotationMatrix()
public Vector3f position()
public void setPositionRef(Vector3f thePosition)
thePosition - Vector3fpublic Vector3f lookat()
public void setLookAtRef(Vector3f theRef)
theLookAtRef - Vector3fpublic Vector3f rotation()
public void setRotationRef(Vector3f theRef)
theRef - Vector3fpublic Vector3f upvector()
public void setUpVectorRef(Vector3f theRef)
theRef - Vector3fpublic Viewport viewport()
public boolean isActive()
Drawable
isActive in interface DrawableisActive in class AbstractDrawablepublic void setActive(boolean theActive)
theActive - boolean
public Vector3f toWorld(float theMouseX,
float theMouseY)
theMouseX - floattheMouseY - float
public float getDistanceToZeroPlane()
public static float getDistanceToZeroPlane(float theFOVY,
int theViewPortHeight)
public void add(Drawable theDrawable)
Drawable
add in interface Drawableadd in class AbstractDrawabletheDrawable - Drawablepublic float[] projectionmatrix()
public float[] modelviewmatrix()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||