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).

Variable Index

 o COLLISION_BOUNCE
 o COLLISION_GLIDE
 o COLLISION_STOP
 o collisionDetection
 o collisionDetectionType
 o collisionRadius
 o document
 o heightAboveTerrain
 o maximumStairstepHeight
 o views

Constructor Index

 o Nexus(Document)
 o Nexus(Document, NodeInstance)

Method Index

 o addView(View)
 o clearStatus()
 o disableCollisionDetection()
Disable collision detection.
 o doGlobalPass()
Called from the document every so often to do the "global pass", which generates proximity sensor events, handles lighting, etc.
 o enableCollisionDetection()
Enable collision detection.
 o frameUpdate(long)
Called from the document every so often to do automatic repositioning of the camera, such as in a fly viewer.
 o getCollisionDetectionType()
 o getCollisionRadius()
 o getDocument()
 o getHeightAboveTerrain()
 o getMaximumStairstepHeight()
 o getRootNodeInstance()
 o getViews()
 o handleSceneEvent(SceneObserverEvent)
 o isCollisionDetectionEnabled()
Return whether collision detection is enabled.
 o reconcileViewPositions()
Called from the document every so often to reconcile the old and desired camera positions.
 o redisplay()
Called from the document every so often to redraw the views.
 o rootChanged()
 o setCollisionDetectionType(int)
 o setCollisionRadius(float)
 o setHeightAboveTerrain(float)
 o setMaximumStairstepHeight(float)
 o setRootNodeInstance(NodeInstance)
 o showStatus(String)
 o start()
 o stop()

Variables

 o views
  protected List views
 o document
  protected Document document
 o collisionDetection
  protected boolean collisionDetection
 o COLLISION_STOP
  public static int COLLISION_STOP
 o COLLISION_BOUNCE
  public static int COLLISION_BOUNCE
 o COLLISION_GLIDE
  public static int COLLISION_GLIDE
 o collisionDetectionType
  protected int collisionDetectionType
 o collisionRadius
  protected float collisionRadius
 o heightAboveTerrain
  protected float heightAboveTerrain
 o maximumStairstepHeight
  protected float maximumStairstepHeight

Constructors

 o Nexus
  public Nexus(Document document,
               NodeInstance inst)
 o Nexus
  public Nexus(Document document)

Methods

 o rootChanged
  public void rootChanged()
 o addView
  public void addView(View view)
 o getViews
  public List getViews()
 o getDocument
  public final synchronized Document getDocument()
 o 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.
 o enableCollisionDetection
  public void enableCollisionDetection()
Enable collision detection.
 o disableCollisionDetection
  public void disableCollisionDetection()
Disable collision detection.
 o isCollisionDetectionEnabled
  public boolean isCollisionDetectionEnabled()
Return whether collision detection is enabled.
 o setCollisionDetectionType
  public void setCollisionDetectionType(int type)
 o getCollisionDetectionType
  public int getCollisionDetectionType()
 o setCollisionRadius
  public void setCollisionRadius(float radius)
 o getCollisionRadius
  public float getCollisionRadius()
 o setHeightAboveTerrain
  public void setHeightAboveTerrain(float height)
 o getHeightAboveTerrain
  public float getHeightAboveTerrain()
 o setMaximumStairstepHeight
  public void setMaximumStairstepHeight(float height)
 o getMaximumStairstepHeight
  public float getMaximumStairstepHeight()
 o reconcileViewPositions
  public void reconcileViewPositions()
Called from the document every so often to reconcile the old and desired camera positions.
 o doGlobalPass
  public void doGlobalPass()
Called from the document every so often to do the "global pass", which generates proximity sensor events, handles lighting, etc.
 o redisplay
  public void redisplay()
Called from the document every so often to redraw the views.
 o showStatus
  public void showStatus(String message)
 o clearStatus
  public void clearStatus()
 o getRootNodeInstance
  public NodeInstance getRootNodeInstance()
 o setRootNodeInstance
  public void setRootNodeInstance(NodeInstance node)
 o handleSceneEvent
  public void handleSceneEvent(SceneObserverEvent ev)
 o start
  public void start()
 o stop
  public void stop()

All Packages  Class Hierarchy  This Package  Previous  Next  Index