| java.lang.Object | |
| ↳ | casmi.graphics.object.Camera |
Camera class. Wrap JOGL and make it easy to use. This class is similar to gluLookAt() in OpenGL
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates Camera object setting the eye position, the center of the scene and which axis is facing upward.
| |||||||||||
Creates Camera object using default parameter.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the eye direction of this Camera.
| |||||||||||
Returns the center of the scene of this Camera.
| |||||||||||
Returns the center of the scene of this Camera.
| |||||||||||
Returns the center of the scene of this Camera.
| |||||||||||
Returns the x-coordinate of the eye position of this Camera.
| |||||||||||
Returns the y-coordinate of the eye position of this Camera.
| |||||||||||
Returns the z-coordinate of the eye position of this Camera.
| |||||||||||
Sets the eye position, the center of the scene and which axis is facing upward.
| |||||||||||
Sets the center of the scene of this Camera.
| |||||||||||
Sets the center of the scene of this Camera.
| |||||||||||
Sets the center of the scene of this Camera.
| |||||||||||
Sets the center of the scene of this Camera.
| |||||||||||
Sets the eye position of this Camera.
| |||||||||||
Sets the x-coordinate of the eye position of this Camera.
| |||||||||||
Sets the y-coordinate of the eye position of this Camera.
| |||||||||||
Sets the z-coordinate of the eye position of this Camera.
| |||||||||||
Sets which axis is facing upward.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates Camera object setting the eye position, the center of the scene and which axis is facing upward.
| eyeX | The x-coordinate for the eye. |
|---|---|
| eyeY | The y-coordinate for the eye. |
| eyeZ | The z-coordinate for the eye. |
| centerX | The x-coordinate for the center of the scene. |
| centerY | The y-coordinate for the center of the scene. |
| centerZ | The z-coordinate for the center of the scene. |
| upX | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
| upY | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
| upZ | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
Creates Camera object using default parameter. The default values are camera(width/2.0, height/2.0, (height/2.0) / tan(PI*60.0 / 360.0), width/2.0, height/2.0, 0, 0, 1, 0)
Gets the eye direction of this Camera.
Returns the center of the scene of this Camera.
Returns the center of the scene of this Camera.
Returns the center of the scene of this Camera.
Returns the x-coordinate of the eye position of this Camera.
Returns the y-coordinate of the eye position of this Camera.
Returns the z-coordinate of the eye position of this Camera.
Sets the eye position, the center of the scene and which axis is facing upward.
| eyeX | The x-coordinate for the eye. |
|---|---|
| eyeY | The y-coordinate for the eye. |
| eyeZ | The z-coordinate for the eye. |
| centerX | The x-coordinate for the center of the scene. |
| centerY | The y-coordinate for the center of the scene. |
| centerZ | The z-coordinate for the center of the scene. |
| upX | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
| upY | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
| upZ | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
Sets the center of the scene of this Camera.
| centerX | The x-coordinate for the center of the scene. |
|---|---|
| centerY | The y-coordinate for the center of the scene. |
| centerZ | The z-coordinate for the center of the scene. |
Sets the center of the scene of this Camera.
| centerX | The X-coordinate for the center of the scene. |
|---|
Sets the center of the scene of this Camera.
| centerY | The Y-coordinate for the center of the scene. |
|---|
Sets the center of the scene of this Camera.
| centerZ | The Z-coordinate for the center of the scene. |
|---|
Sets the eye position of this Camera.
| eyeX | The x-coordinate for the eye. |
|---|---|
| eyeY | The y-coordinate for the eye. |
| eyeZ | The z-coordinate for the eye. |
Sets the x-coordinate of the eye position of this Camera.
| eyeX | The x-coordinate for the eye. |
|---|
Sets the y-coordinate of the eye position of this Camera.
| eyeY | The y-coordinate for the eye. |
|---|
Sets the z-coordinate of the eye position of this Camera.
| eyeZ | The z-coordinate for the eye. |
|---|
Sets which axis is facing upward.
| upX | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
|---|---|
| upY | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |
| upZ | Setting which axis is facing upward; usually 0.0, 1.0, or -1.0. |