public class Camera extends HomeObject
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.
|
Camera(java.lang.String id,
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(java.lang.String id,
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 |
---|---|
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.
|
java.lang.String |
getRenderer()
Returns the rendering engine used to create photos.
|
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 |
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 and notifies listeners of this change.
|
void |
setLens(Camera.Lens lens)
Sets the lens of this camera and notifies listeners of this change.
|
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 and notifies listeners of this change.
|
void |
setRenderer(java.lang.String renderer)
Sets the rendering engine used to create photos.
|
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 and notifies listeners of this change.
|
void |
setY(float y)
Sets the ordinate of this camera and notifies listeners of this change.
|
void |
setYaw(float yaw)
Sets the yaw angle in radians of this camera and notifies listeners of this change.
|
void |
setZ(float z)
Sets the elevation of this camera and notifies listeners of this change.
|
addPropertyChangeListener, addPropertyChangeListener, createId, duplicate, firePropertyChange, getContentProperty, getId, getProperty, getPropertyNames, isContentProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty, setProperty
public Camera(float x, float y, float z, float yaw, float pitch, float fieldOfView)
public Camera(java.lang.String id, 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 Camera(java.lang.String id, float x, float y, float z, float yaw, float pitch, float fieldOfView, long time, Camera.Lens lens)
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 setRenderer(java.lang.String renderer)
public java.lang.String getRenderer()
public void setCamera(Camera camera)
camera
in parameter.public Camera clone()
clone
in class HomeObject
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License