|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gnu.gleem.CameraParameters
Container class for camera's parameters.
| Constructor Summary | |
CameraParameters()
|
|
CameraParameters(Vec3f position,
Vec3f forwardDirection,
Vec3f upDirection,
float vertFOV,
float imagePlaneAspectRatio,
int xSize,
int ySize)
|
|
| Method Summary | |
Vec3f |
getForwardDirection()
Gets 3-space forward direction of camera. |
float |
getImagePlaneAspectRatio()
Gets the aspect ratio of the image plane. |
Vec3f |
getPosition()
Gets 3-space origin of camera |
Vec3f |
getUpDirection()
Gets 3-space upward direction of camera. |
float |
getVertFOV()
Returns HALF of the vertical angular span of the frustum, specified in radians. |
int |
getXSize()
Gets the horizontal size of the window, in pixels |
int |
getYSize()
Gets the vertical size of the window, in pixels |
void |
set(CameraParameters params)
|
void |
setForwardDirection(Vec3f fwd)
Sets 3-space forward direction of camera. |
void |
setImagePlaneAspectRatio(float ratio)
Sets the aspect ratio of the image plane. |
void |
setPosition(Vec3f position)
Sets 3-space origin of camera |
void |
setUpDirection(Vec3f up)
Sets 3-space upward direction of camera. |
void |
setVertFOV(float vertFOV)
Takes HALF of the vertical angular span of the frustum, specified in radians. |
void |
setXSize(int xSize)
Sets the horizontal size of the window, in pixels |
void |
setYSize(int ySize)
Sets the vertical size of the window, in pixels |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CameraParameters()
public CameraParameters(Vec3f position,
Vec3f forwardDirection,
Vec3f upDirection,
float vertFOV,
float imagePlaneAspectRatio,
int xSize,
int ySize)
| Method Detail |
public void set(CameraParameters params)
public void setPosition(Vec3f position)
public Vec3f getPosition()
public void setForwardDirection(Vec3f fwd)
public Vec3f getForwardDirection()
public void setUpDirection(Vec3f up)
public Vec3f getUpDirection()
public void setVertFOV(float vertFOV)
public float getVertFOV()
public void setImagePlaneAspectRatio(float ratio)
public float getImagePlaneAspectRatio()
public void setXSize(int xSize)
public int getXSize()
public void setYSize(int ySize)
public int getYSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||