Class dnx.lr.app.Nexus
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.app.Nexus
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.lr.app.Nexus
- public class Nexus
- extends DNXObject
An Nexus is an object that manages the interaction of the user
with a VRML scene. An nexus contains a root node instance
specifying what is being managed (the scene itself is derivable from
the NodeInstance, or from the Document), and a list of views
(i.e. visible representations of the scene).
-
COLLISION_BOUNCE
-
-
COLLISION_GLIDE
-
-
COLLISION_STOP
-
-
collisionDetection
-
-
collisionDetectionType
-
-
collisionRadius
-
-
document
-
-
heightAboveTerrain
-
-
maximumStairstepHeight
-
-
views
-
-
Nexus(Document)
-
-
Nexus(Document, NodeInstance)
-
-
addView(View)
-
-
clearStatus()
-
-
disableCollisionDetection()
- Disable collision detection.
-
doGlobalPass()
- Called from the document every so often to do the "global pass",
which generates proximity sensor events, handles lighting, etc.
-
enableCollisionDetection()
- Enable collision detection.
-
frameUpdate(long)
- Called from the document every so often to do automatic repositioning
of the camera, such as in a fly viewer.
-
getCollisionDetectionType()
-
-
getCollisionRadius()
-
-
getDocument()
-
-
getHeightAboveTerrain()
-
-
getMaximumStairstepHeight()
-
-
getRootNodeInstance()
-
-
getViews()
-
-
handleSceneEvent(SceneObserverEvent)
-
-
isCollisionDetectionEnabled()
- Return whether collision detection is enabled.
-
reconcileViewPositions()
- Called from the document every so often to reconcile the old
and desired camera positions.
-
redisplay()
- Called from the document every so often to redraw the views.
-
rootChanged()
-
-
setCollisionDetectionType(int)
-
-
setCollisionRadius(float)
-
-
setHeightAboveTerrain(float)
-
-
setMaximumStairstepHeight(float)
-
-
setRootNodeInstance(NodeInstance)
-
-
showStatus(String)
-
-
start()
-
-
stop()
-
views
protected List views
document
protected Document document
collisionDetection
protected boolean collisionDetection
COLLISION_STOP
public static int COLLISION_STOP
COLLISION_BOUNCE
public static int COLLISION_BOUNCE
COLLISION_GLIDE
public static int COLLISION_GLIDE
collisionDetectionType
protected int collisionDetectionType
collisionRadius
protected float collisionRadius
heightAboveTerrain
protected float heightAboveTerrain
maximumStairstepHeight
protected float maximumStairstepHeight
Nexus
public Nexus(Document document,
NodeInstance inst)
Nexus
public Nexus(Document document)
rootChanged
public void rootChanged()
addView
public void addView(View view)
getViews
public List getViews()
getDocument
public final synchronized Document getDocument()
frameUpdate
public void frameUpdate(long when)
- Called from the document every so often to do automatic repositioning
of the camera, such as in a fly viewer.
enableCollisionDetection
public void enableCollisionDetection()
- Enable collision detection.
disableCollisionDetection
public void disableCollisionDetection()
- Disable collision detection.
isCollisionDetectionEnabled
public boolean isCollisionDetectionEnabled()
- Return whether collision detection is enabled.
setCollisionDetectionType
public void setCollisionDetectionType(int type)
getCollisionDetectionType
public int getCollisionDetectionType()
setCollisionRadius
public void setCollisionRadius(float radius)
getCollisionRadius
public float getCollisionRadius()
setHeightAboveTerrain
public void setHeightAboveTerrain(float height)
getHeightAboveTerrain
public float getHeightAboveTerrain()
setMaximumStairstepHeight
public void setMaximumStairstepHeight(float height)
getMaximumStairstepHeight
public float getMaximumStairstepHeight()
reconcileViewPositions
public void reconcileViewPositions()
- Called from the document every so often to reconcile the old
and desired camera positions.
doGlobalPass
public void doGlobalPass()
- Called from the document every so often to do the "global pass",
which generates proximity sensor events, handles lighting, etc.
redisplay
public void redisplay()
- Called from the document every so often to redraw the views.
showStatus
public void showStatus(String message)
clearStatus
public void clearStatus()
getRootNodeInstance
public NodeInstance getRootNodeInstance()
setRootNodeInstance
public void setRootNodeInstance(NodeInstance node)
handleSceneEvent
public void handleSceneEvent(SceneObserverEvent ev)
start
public void start()
stop
public void stop()
All Packages Class Hierarchy This Package Previous Next Index