|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.swogl.scene.DefaultCamera
public final class DefaultCamera
Default implementation of a MutableCamera.
| Constructor Summary | |
|---|---|
DefaultCamera()
Creates a new DefaultCamera with an eyePoint at (0,0,1), a viewPoint of (0,0,0), an upVector of (0,1,0) and a fov of 60 degrees. |
|
| Method Summary | |
|---|---|
void |
addCameraListener(CameraListener cameraListener)
Add the given listener which will be notified when a property of this camera changes |
javax.vecmath.Point3f |
getEyePoint()
Return the eye point of the camera |
float |
getFovY()
Return the angle of the field-of-view (FOV) of the camera (in y-direction), in degrees |
javax.vecmath.Vector3f |
getUpVector()
Return the up vector of the camera |
javax.vecmath.Point3f |
getViewPoint()
Return the view point of the camera |
protected void |
notifyCameraChanged()
Notify all listeners about a camera change |
void |
removeCameraListener(CameraListener cameraListener)
Remove the given listener from this camera |
void |
setEyePoint(javax.vecmath.Tuple3f point)
Set the eye point of the camera |
void |
setFovY(float degrees)
Set the field-of-view (FOV) of the camera (in y-direction) to the given angle (in degrees) |
void |
setUpVector(javax.vecmath.Tuple3f vector)
Set the up vector of the camera |
void |
setViewPoint(javax.vecmath.Tuple3f point)
Set the view point of the camera |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCamera()
| Method Detail |
|---|
public javax.vecmath.Point3f getEyePoint()
Camera
getEyePoint in interface Camerapublic javax.vecmath.Point3f getViewPoint()
Camera
getViewPoint in interface Camerapublic javax.vecmath.Vector3f getUpVector()
Camera
getUpVector in interface Camerapublic float getFovY()
Camera
getFovY in interface Camerapublic void setEyePoint(javax.vecmath.Tuple3f point)
MutableCamera
setEyePoint in interface MutableCamerapoint - The eye point of the camerapublic void setViewPoint(javax.vecmath.Tuple3f point)
MutableCamera
setViewPoint in interface MutableCamerapoint - The view point of the camerapublic void setUpVector(javax.vecmath.Tuple3f vector)
MutableCamera
setUpVector in interface MutableCameravector - The up vector of the camerapublic void setFovY(float degrees)
MutableCamera
setFovY in interface MutableCameradegrees - The FOVprotected void notifyCameraChanged()
public void addCameraListener(CameraListener cameraListener)
Camera
addCameraListener in interface CameracameraListener - The listener to addpublic void removeCameraListener(CameraListener cameraListener)
Camera
removeCameraListener in interface CameracameraListener - The listener to removepublic 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 | |||||||||