net.dzzd.access
Interface ICamera3D

All Superinterfaces:
IMonitoredSceneObject, IRender3DMode, IScene2DObject, IScene3DObject, ISceneObject

public interface ICamera3D
extends IScene3DObject

Used for accessing to a Camera3D.

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 in scene unit.
 double getFOV()
          Gets the camera field of view in degree.
 double getHeight()
          Gets the camera screen height expressed in scene unit.
 IPoint3D getTarget()
          Gets the camera target.
 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 in degree.
 void setHeight(double val)
          Set the camera screen height expressed in scene unit.
 void setTarget(IPoint3D target)
          Sets the camera target.
 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)
          Sets 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 net.dzzd.access.IScene3DObject
addChild, getAxis3D, getCenter, getClone, getFirstChild, getNextChild, getParent, getPivot, getPosition, getRotation, getScene3D, getScene3DObjectAnimator, getSphereBox, getZoom, isActive, isSolid, isVisible, loopAtScene3DObjectAnimator, pauseScene3DObjectAnimator, playScene3DObjectAnimator, removeChild, resumeScene3DObjectAnimator, setActive, setAxis3DToWorld, setParent, setPoint3DToWorld, setScene3DObjectAnimator, setSolid, setSphereBox, setVisible, startScene3DObjectAnimator, startScene3DObjectAnimator, startScene3DObjectAnimator, stopScene3DObjectAnimator, zoom
 
Methods inherited from interface net.dzzd.access.ISceneObject
build, clearProperties, copy, getBuild, getId, getName, getProperty, getScene, setBuild, setId, setName, setProperty
 
Methods inherited from interface net.dzzd.access.IMonitoredSceneObject
copy
 
Methods inherited from interface net.dzzd.access.IRender3DMode
disableRender3DMode, enableRender3DMode, getRender3DMode, getRender3DModeFlags, setRender3DModeFlags
 

Method Detail

getFOV

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

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

setFOV

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

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

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

getFocus

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

Returns:
camera focal length in scene unit.

getWidth

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

Returns:
the camera screen width expressed in scene unit.

getHeight

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

Returns:
the camera screen height expressed in scene unit.

getZoomX

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

Returns:
the camera horizontal zoom expressed in scene unit.

getZoomY

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

Returns:
the camera vertical zoom expressed in scene unit.

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.

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.

setFocus

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

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

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.

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.

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.

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.

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.

setZMin

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

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

setTarget

public void setTarget(IPoint3D target)
Sets the camera target.

Parameters:
target - target that camera must look at, null to make this camera non-target (freehand).

getTarget

public IPoint3D getTarget()
Gets the camera target.

Returns:
target target that camera look at, or none if it is not a target camera (freehand).