dzzd
Interface ICamera3D

All Superinterfaces:
IScene3DObject, ISceneObject

public interface ICamera3D
extends IScene3DObject

Interface used for accessing to a Camera 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()
          Get the camera focal length expressed in scene unit.
 double getFOV()
          Get the camera field of view expressed in degree.
 double getHeight()
          Get the camera screen height expressed in scene unit.
 double getWidth()
          Get the camera screen width expressed in scene unit.
 double getZMax()
          Get the camera maximum z clipping value expressed in scene unit.
 double getZMin()
          Get the camera minimum z clipping value expressed in scene unit.
 double getZoomX()
          Get the camera horizontal zoom expressed in scene unit.
 double getZoomY()
          Get the camera vertical zoom expressed in scene unit.
 void setFocus(double val)
          Set the camera focal length expressed in scene unit.
 void setFOV(double val)
          Set 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)
          Set the camera screen width expressed in scene unit.
 void setZMax(double val)
          Set 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)
          Set the camera horizontal zoom expressed in scene unit.
 void setZoomY(double val)
          Set 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()
Get 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)
Set 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()
Get the camera focal length expressed in scene unit.

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

getWidth

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

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

getHeight

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

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

getZoomX

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

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

getZoomY

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

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

getZMax

public double getZMax()
Get 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()
Get 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)
Set 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)
Set 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)
Set 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)
Set 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)
Set 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