dzzd
Interface ICamera3D

All Superinterfaces:
IScene3DObject, ISceneObject

public interface ICamera3D
extends IScene3DObject

Interface used for accessing to a Camera3D that can render a 3d scene.

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
IScene3DObject, IRender3D

Method Summary
 double getFocus()
          Gets the camera focal length expressed in scene unit.
 double getFOV()
          Gets the camera field of view expressed in degree.
 double getHeight()
          Gets the camera screen height expressed in scene unit.
 double getWidth()
          Gets the camera screen width expressed in scene unit.
 double getZMax()
          Gets the camera maximum z clipping value expressed in scene unit.
 double getZMin()
          Gets the camera minimum z clipping value expressed in scene unit.
 double getZoomX()
          Gets the camera horizontal zoom expressed in scene unit.
 double getZoomY()
          Gets the camera vertical zoom expressed in scene unit.
 void setFocus(double val)
          Sets the camera focal length expressed in scene unit.
 void setFOV(double val)
          Sets the camera field of view expressed in degree.
 void setHeight(double val)
          Set the camera screen height expressed in scene unit.
 void setWidth(double val)
          Sets the camera screen width expressed in scene unit.
 void setZMax(double val)
          Sets the camera maximum z clipping value expressed in scene unit.
 void setZMin(double val)
          Set the camera minimum z clipping value expressed in scene unit.
 void setZoomX(double val)
          Sets the camera horizontal zoom expressed in scene unit.
 void setZoomY(double val)
          Sets the camera vertical zoom expressed in scene unit.
 
Methods inherited from interface dzzd.IScene3DObject
addChild, getAxis3D, getCenter, getFirstChild, getInstanceCopy, getNextChild, getParent, getPivot, getPosition, getRotation, getSphereBox, moveAsSolidSphere, removeChild, setParent, setSphereBox, zoom
 
Methods inherited from interface dzzd.ISceneObject
getId, getName, getRender3D, setId, setName
 

Method Detail

getFOV

public double getFOV()
Gets the camera field of view expressed in degree.

Returns:
camera horizontal field of view angle expressed in degree (0-180)
Since:
1.0

setFOV

public void setFOV(double val)
Sets the camera field of view expressed in degree.

this method will modify the focal length according to the camera screen width

Parameters:
val - camera horizontal field of view angle expressed in degree (0-180)
Since:
1.0

getFocus

public double getFocus()
Gets the camera focal length expressed in scene unit.

Returns:
camera focal length expressed in scene unit.
Since:
1.0

getWidth

public double getWidth()
Gets the camera screen width expressed in scene unit.

Returns:
the camera screen width expressed in scene unit.
Since:
1.0

getHeight

public double getHeight()
Gets the camera screen height expressed in scene unit.

Returns:
the camera screen height expressed in scene unit.
Since:
1.0

getZoomX

public double getZoomX()
Gets the camera horizontal zoom expressed in scene unit.

Returns:
the camera horizontal zoom expressed in scene unit.
Since:
1.0

getZoomY

public double getZoomY()
Gets the camera vertical zoom expressed in scene unit.

Returns:
the camera vertical zoom expressed in scene unit.
Since:
1.0

getZMax

public double getZMax()
Gets the camera maximum z clipping value expressed in scene unit.

Returns:
the camera maximum z clipping value expressed in scene unit.
Since:
1.0

getZMin

public double getZMin()
Gets the camera minimum z clipping value expressed in scene unit.

Returns:
the camera minimum z clipping value expressed in scene unit.
Since:
1.0

setFocus

public void setFocus(double val)
Sets the camera focal length expressed in scene unit.

Parameters:
val - camera focal length expressed in scene unit.
Since:
1.0

setWidth

public void setWidth(double val)
Sets the camera screen width expressed in scene unit.

Parameters:
val - the camera screen width expressed in scene unit.
Since:
1.0

setHeight

public void setHeight(double val)
Set the camera screen height expressed in scene unit.

Parameters:
val - the camera screen height expressed in scene unit.
Since:
1.0

setZoomX

public void setZoomX(double val)
Sets the camera horizontal zoom expressed in scene unit.

Parameters:
val - the camera horizontal zoom expressed in scene unit.
Since:
1.0

setZoomY

public void setZoomY(double val)
Sets the camera vertical zoom expressed in scene unit.

Parameters:
val - the camera vertical zoom expressed in scene unit.
Since:
1.0

setZMax

public void setZMax(double val)
Sets the camera maximum z clipping value expressed in scene unit.

Parameters:
val - the camera maximum z clipping value expressed in scene unit.
Since:
1.0

setZMin

public void setZMin(double val)
Set the camera minimum z clipping value expressed in scene unit.

Parameters:
val - the camera minimum z clipping value expressed in scene unit.
Since:
1.0