wobs.scene3d.nodes
Class Viewpoint

java.lang.Object
  extended by X3DDefaultNode
      extended by wobs.scene3d.nodes.Viewpoint

public class Viewpoint
extends X3DDefaultNode

This class contains index constants to access fields in a Viewpoint node using the X3DNode.getField(int fieldIndex) method.

In X3D/VRML, the Viewpoint node defines a specific location in the local coordinate system from which the user may view the scene.


Field Summary
static int bound
          The constant used to access the bound field of a Viewpoint node.
static int fieldOfView
          The constant used to access the fieldOfView field of a Viewpoint node.
static int orientation
          The constant used to access the orientation field of a Viewpoint node.
static int position
          The constant used to access the position field of a Viewpoint node.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldOfView

public static final int fieldOfView
The constant used to access the fieldOfView field of a Viewpoint node.
In X3D/VRML, this field specifies the field of view (FOV) value in radians, ranging between 0 and PI (3.14159...). Converting from degrees to radians can be done by multiplying the value in degrees by PI/180.

This field is of X3D/VRML-type SFFloat.

See Also:
Constant Field Values

orientation

public static final int orientation
The constant used to access the orientation field of a Viewpoint node.
In X3D/VRML, this field specifies the rotation relative to the default orientation. In the default position and orientation, the viewer is on the Z-axis looking down the -Z-axis toward the origin with +X to the right and +Y straight up.

This field is of X3D/VRML-type SFRotation.

See Also:
Constant Field Values

position

public static final int position
The constant used to access the position field of a Viewpoint node.
In X3D/VRML, this field specifies the position relative to the coordinate system's origin (0,0,0). In the default position and orientation, the viewer is on the Z-axis looking down the -Z-axis toward the origin with +X to the right and +Y straight up.

This field is of X3D/VRML-type SFVec3f.

See Also:
Constant Field Values

bound

public static final int bound
The constant used to access the bound field of a Viewpoint node.
In X3D/VRML, when this field is set to True, the scene view will change to the specified view. Original VRML node name is set_bind.

This field is of X3D/VRML-type SFBool.

See Also:
Constant Field Values