| Modifier and Type | Class and Description |
|---|---|
protected static class |
Camera.CameraLoader |
Camera.LoaderMODE_NO_PERSPECTIVE, MODE_PERSPECTIVE, MODE_PLANAR_XY, MODE_PLANAR_XZ, MODE_PLANAR_YZ| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Get the elevation (vertical) angle of the camera position in spherical
coordinates with respect to the focus point.
|
double |
getAzimuth()
Get the horizontal angle of the camera position in spherical coordinates
with respect to the focus point.
|
double |
getDistanceToScreen()
Returns the distance from the camera to the projecting screen.
|
double |
getFocusX()
Returns the focus X coordinate
|
double |
getFocusY()
Returns the focus Y coordinate
|
double |
getFocusZ()
Returns the focus Z coordinate
|
static XML.ObjectLoader |
getLoader() |
int |
getProjectionMode()
Gets the projecting mode of the camera.
|
double |
getRotation()
Returns the angle that the camera is rotated along the line of sight.
|
Transformation |
getTransformation()
Returns the transfomation used to project (x,y,z) points in space
to points of the form (a,b,distance).
|
double |
getX()
Returns the camera X coordinate
|
double |
getY()
Returns the camera Y coordinate
|
double |
getZ()
Returns the camera Z coordinate
|
void |
reset()
Resets the camera to the default.
|
void |
setAltitude(double angle)
Set the elevation (vertical) angle of the camera position in spherical
coordinates with respect to the focus point.
|
void |
setAzimuth(double angle)
Set the azimuthal (horizontal) angle of the camera position in spherical
coordinates with respect to the focus point.
|
void |
setAzimuthAndAltitude(double azimuth,
double altitude)
Set the angles of the camera position in spherical coordinates
with respect to the focus point.
|
void |
setDistanceToScreen(double distance)
Sets the distance from the camera to the projecting screen.
|
void |
setFocusXYZ(double[] point)
Sets the focus of the camera.
|
void |
setFocusXYZ(double x,
double y,
double z)
Sets the focus point of the camera.
|
void |
setProjectionMode(int mode)
Sets one of the projecting modes.
|
void |
setRotation(double angle)
Sets the angle that the camera is rotated along the line of sight.
|
void |
setXYZ(double[] point)
Sets the position of the camera.
|
void |
setXYZ(double x,
double y,
double z)
Sets the position of the camera.
|
public void setProjectionMode(int mode)
CameraChanging the mode does not reset the camera.
setProjectionMode in interface Cameramode - intpublic final int getProjectionMode()
CameragetProjectionMode in interface Camerapublic void reset()
Camerapublic void setXYZ(double x,
double y,
double z)
Camerapublic void setXYZ(double[] point)
Camerapublic final double getX()
Camerapublic final double getY()
Camerapublic final double getZ()
Camerapublic void setFocusXYZ(double x,
double y,
double z)
CamerasetFocusXYZ in interface Camerax - doubley - doublez - doublepublic void setFocusXYZ(double[] point)
CamerasetFocusXYZ in interface Camerapoint - double[]public final double getFocusX()
Camerapublic final double getFocusY()
Camerapublic final double getFocusZ()
Camerapublic void setRotation(double angle)
CamerasetRotation in interface Cameraangle - double The angle in radianspublic final double getRotation()
CameragetRotation in interface Camerapublic void setDistanceToScreen(double distance)
CamerasetDistanceToScreen in interface Cameradistance - doublepublic final double getDistanceToScreen()
CameragetDistanceToScreen in interface Camerapublic void setAzimuth(double angle)
CamerasetAzimuth in interface Cameraangle - the desired angle in radianspublic final double getAzimuth()
CameragetAzimuth in interface Camerapublic void setAltitude(double angle)
CamerasetAltitude in interface Cameraangle - the desired angle in radians in the range [-Math.PI/2,Math.PI/2]public final double getAltitude()
CameragetAltitude in interface Camerapublic void setAzimuthAndAltitude(double azimuth,
double altitude)
CamerasetAzimuthAndAltitude in interface Cameraazimuth - the desired azimuthal angle in radiansaltitude - the desired altitude angle in radians in the range [-Math.PI/2,Math.PI/2]public final Transformation getTransformation()
CameragetTransformation in interface Camerapublic static XML.ObjectLoader getLoader()