|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLViewpointNodeType
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 | |
|---|---|
void |
addViewpointListener(ViewpointListener l)
Add a ViewpointListener. |
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. |
boolean |
getRetainUserOffsets()
Get the retainUserOffsets field value of this viewpoint. |
void |
removeViewpointListener(ViewpointListener l)
Remove a ViewpointListener. |
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 |
void |
setRetainUserOffsets(boolean retainUserOffsets)
Set the retainUserOffsets 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, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, 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 |
|---|
static final int PROJECTION_PERSPECTIVE
static final int PROJECTION_ORTHO
| Method Detail |
|---|
void addViewpointListener(ViewpointListener l)
l - The listener. Duplicates and nulls are ignored.void removeViewpointListener(ViewpointListener l)
l - The listenerint getProjectionType()
float[] getFieldOfView()
float[] getCenterOfRotation()
void setCenterOfRotation(float[] pos)
throws InvalidFieldValueException
pos - The new position to use
InvalidFieldValueException - The field used is not 3 valuesboolean getJump()
void setJump(boolean jump)
jump - True if the viewpoint should jump to ne positionsboolean getRetainUserOffsets()
void setRetainUserOffsets(boolean retainUserOffsets)
retainUserOffsets - True if the viewpoint should retainUserOffsets on a bindjava.lang.String getDescription()
void setDescription(java.lang.String desc)
desc - The new description to use
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||