|
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 node that provides navigation hints 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 java.lang.String |
NAV_TYPE_ANY
The navigation type is ANY |
static java.lang.String |
NAV_TYPE_EXAMINE
The navigation type is EXAMINE |
static java.lang.String |
NAV_TYPE_FLY
The navigation type is FLY |
static java.lang.String |
NAV_TYPE_LOOKAT
The navigation type is LOOKAT |
static java.lang.String |
NAV_TYPE_NONE
The navigation type is NONE |
static java.lang.String |
NAV_TYPE_WALK
The navigation type is WALK |
static java.lang.String |
TRANSITION_TYPE_ANIMATE
The transition type ANIMATE |
static java.lang.String |
TRANSITION_TYPE_LINEAR
The transition type LINEAR |
static java.lang.String |
TRANSITION_TYPE_TELEPORT
The transition type TELEPORT |
| Method Summary | |
float[] |
getAvatarSize()
Get the dimensions of the avatar in use. |
boolean |
getHeadlight()
Get the status of the headlight that we are operating with. |
int |
getNumTypes()
Get the number of valid navigation types in the result from getType(). |
float |
getSpeed()
Get the speed that we are currently moving at. |
java.lang.String[] |
getType()
Get the list of navigation types that are to be used. |
float |
getVisibilityLimit()
Get the visibility limit that we are currently operating at. |
void |
setAvatarSize(float[] size,
int numValid)
Set the dimensions of the avatar in use. |
void |
setHeadlight(boolean enable)
Set the statte of the headlight to the new value. |
void |
setNavigationChangedListener(NavigationInfoChangeListener listener)
Change the listener for navigation info changes. |
void |
setSpeed(float newSpeed)
Set the speed to move at. |
void |
setType(java.lang.String[] types,
int numValid)
Set the navigation type to the new value(s). |
void |
setVisibilityLimit(float limit)
Set the visibility limie to move at. |
void |
setWorldLocation(javax.vecmath.Vector3f wcpos)
Sets the current position in world coordinates. |
| 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 java.lang.String NAV_TYPE_ANY
public static final java.lang.String NAV_TYPE_WALK
public static final java.lang.String NAV_TYPE_EXAMINE
public static final java.lang.String NAV_TYPE_LOOKAT
public static final java.lang.String NAV_TYPE_FLY
public static final java.lang.String NAV_TYPE_NONE
public static final java.lang.String TRANSITION_TYPE_LINEAR
public static final java.lang.String TRANSITION_TYPE_TELEPORT
public static final java.lang.String TRANSITION_TYPE_ANIMATE
| Method Detail |
public java.lang.String[] getType()
public int getNumTypes()
public void setType(java.lang.String[] types,
int numValid)
throws InvalidFieldValueException
types - The list of types to now use in order of preferencenumValid - number of valid items to use from the size array
InvalidFieldValueException - The list was null or emptypublic float[] getAvatarSize()
public void setAvatarSize(float[] size,
int numValid)
throws InvalidFieldValueException
size - The new size values to usenumValid - number of valid items to use from the size array
InvalidFieldValueException - The array did not contain 3 valuespublic float getSpeed()
public void setSpeed(float newSpeed)
throws InvalidFieldValueException
newSpeed - The new speed value to use
InvalidFieldValueException - The speed was negativepublic float getVisibilityLimit()
public void setVisibilityLimit(float limit)
throws InvalidFieldValueException
limit - The new visibility limit value to use
InvalidFieldValueException - The visibility limit was negativepublic boolean getHeadlight()
public void setHeadlight(boolean enable)
enable - True if we are to use the headlightpublic void setNavigationChangedListener(NavigationInfoChangeListener listener)
listener - The new navigation info change listenerpublic void setWorldLocation(javax.vecmath.Vector3f wcpos)
wcpos - Location of the user in world coordinates(x,y,z)
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||