|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Base representation of a viewpoint node in the scene.
A viewpoint provides a place to examine the contents of the virtual world. Depending on the world type, the way of specifying a viewpoint's location and orientation may change. This base interface describes all of the common requirements for a viewpoint.
| Field Summary | |
static int |
PROJECTION_ORTHO
|
static int |
PROJECTION_PERSPECTIVE
|
| Method Summary | |
float[] |
getCenterOfRotation()
Get the center of rotation defined by this viewpoint. |
java.lang.String |
getDescription()
Get the description string associated with this viewpoint. |
float |
getFieldOfView()
Get the field of view used by this viewpoint. |
boolean |
getJump()
Get the Jump field value of this viewpoint. |
int |
getProjectionType()
Get the projection type. |
void |
setCenterOfRotation(float[] pos)
Set the center of rotation of this viewpoint. |
void |
setDescription(java.lang.String desc)
Set the description string of this viewpoint. |
void |
setJump(boolean jump)
Set the jump field value of this viewpoint to the new value |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLBindableNodeType |
addBindableNodeListener, getBindTime, getIsBound, removeBindableNodeListener, setBind, setOnStack |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
allEventsComplete |
| Field Detail |
public static final int PROJECTION_PERSPECTIVE
public static final int PROJECTION_ORTHO
| Method Detail |
public int getProjectionType()
public float getFieldOfView()
public float[] getCenterOfRotation()
public void setCenterOfRotation(float[] pos)
throws InvalidFieldValueException
pos - The new position to use
InvalidFieldValueException - The field used is not 3 valuespublic boolean getJump()
public void setJump(boolean jump)
jump - True if the viewpoint should jump to ne positionspublic java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc - The new description to use
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||