public class Camera
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Camera.Lens
The kind of lens that can be used with a camera.
|
static class |
Camera.Property
The properties of a camera that may change.
|
Constructor and Description |
---|
Camera(float x,
float y,
float z,
float yaw,
float pitch,
float fieldOfView)
Creates a camera at given location and angles at midday and using a pinhole lens.
|
Camera(float x,
float y,
float z,
float yaw,
float pitch,
float fieldOfView,
long time,
Camera.Lens lens)
Creates a camera at given location and angles.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this camera. |
Camera |
clone()
Returns a clone of this camera.
|
static long |
convertTimeToTimeZone(long utcTime,
java.lang.String timeZone)
Returns a time expressed in UTC time zone converted to the given time zone.
|
float |
getFieldOfView()
Returns the field of view in radians of this camera.
|
Camera.Lens |
getLens()
Returns the lens of this camera.
|
java.lang.String |
getName()
Returns the name of this camera.
|
float |
getPitch()
Returns the pitch angle in radians of this camera.
|
long |
getTime()
Returns the time in milliseconds when this camera is used.
|
float |
getX()
Returns the abscissa of this camera.
|
float |
getY()
Returns the ordinate of this camera.
|
float |
getYaw()
Returns the yaw angle in radians of this camera.
|
float |
getZ()
Returns the elevation of this camera.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this camera. |
void |
setCamera(Camera camera)
Sets the location and angles of this camera from the
camera in parameter. |
void |
setFieldOfView(float fieldOfView)
Sets the field of view in radians of this camera.
|
void |
setLens(Camera.Lens lens)
Sets the lens of this camera.
|
void |
setName(java.lang.String name)
Sets the name of this camera and notifies listeners of this change.
|
void |
setPitch(float pitch)
Sets the pitch angle in radians of this camera.
|
void |
setTime(long time)
Sets the use time in milliseconds since the Epoch in UTC time zone,
and notifies listeners of this change.
|
void |
setX(float x)
Sets the abscissa of this camera.
|
void |
setY(float y)
Sets the ordinate of this camera.
|
void |
setYaw(float yaw)
Sets the yaw angle in radians of this camera.
|
void |
setZ(float z)
Sets the elevation of this camera.
|
public Camera(float x, float y, float z, float yaw, float pitch, float fieldOfView)
public Camera(float x, float y, float z, float yaw, float pitch, float fieldOfView, long time, Camera.Lens lens)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
in parameter to this camera.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
in parameter from this camera.public java.lang.String getName()
public void setName(java.lang.String name)
public float getYaw()
public void setYaw(float yaw)
public float getPitch()
public void setPitch(float pitch)
public float getFieldOfView()
public void setFieldOfView(float fieldOfView)
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getZ()
public void setZ(float z)
public long getTime()
public void setTime(long time)
public static long convertTimeToTimeZone(long utcTime, java.lang.String timeZone)
public Camera.Lens getLens()
public void setLens(Camera.Lens lens)
public void setCamera(Camera camera)
camera
in parameter.public Camera clone()
clone
in class java.lang.Object
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License