Sweet Home 3D 2.5

com.eteks.sweethome3d.model
Class Camera

java.lang.Object
  extended by com.eteks.sweethome3d.model.Camera
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
ObserverCamera

public class Camera
extends Object
implements Serializable, Cloneable

Camera characteristics in home.

Author:
Emmanuel Puybaret
See Also:
Serialized Form

Nested Class Summary
static class Camera.Property
          The properties of a camera that may change.
 
Constructor Summary
Camera(float x, float y, float z, float yaw, float pitch, float fieldOfView)
          Creates a camera at given location and angles.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds the property change listener in parameter to this camera.
 Camera clone()
          Returns a clone of this camera.
 float getFieldOfView()
          Returns the field of view in radians of this camera.
 float getPitch()
          Returns the pitch angle in radians of this camera.
 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(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 setPitch(float pitch)
          Sets the pitch angle in radians of this camera.
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Camera

public Camera(float x,
              float y,
              float z,
              float yaw,
              float pitch,
              float fieldOfView)
Creates a camera at given location and angles.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Adds the property change listener in parameter to this camera.


removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes the property change listener in parameter from this camera.


getYaw

public float getYaw()
Returns the yaw angle in radians of this camera.


setYaw

public void setYaw(float yaw)
Sets the yaw angle in radians of this camera.


getPitch

public float getPitch()
Returns the pitch angle in radians of this camera.


setPitch

public void setPitch(float pitch)
Sets the pitch angle in radians of this camera.


getFieldOfView

public float getFieldOfView()
Returns the field of view in radians of this camera.


setFieldOfView

public void setFieldOfView(float fieldOfView)
Sets the field of view in radians of this camera.


getX

public float getX()
Returns the abscissa of this camera.


setX

public void setX(float x)
Sets the abscissa of this camera.


getY

public float getY()
Returns the ordinate of this camera.


setY

public void setY(float y)
Sets the ordinate of this camera. This method should be called only from Home, which controls notifications when a camera changed.


getZ

public float getZ()
Returns the elevation of this camera.


setZ

public void setZ(float z)
Sets the elevation of this camera. This method should be called only from Home, which controls notifications when a camera changed.


setCamera

public void setCamera(Camera camera)
Sets the location and angles of this camera from the camera in parameter

Since:
2.3

clone

public Camera clone()
Returns a clone of this camera.

Overrides:
clone in class Object
Since:
2.3

Sweet Home 3D 2.5

© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License