Jeospace API

org.jeospace.simulation
Class X3DNavManager

java.lang.Object
  extended byorg.jeospace.simulation.X3DNavManager
All Implemented Interfaces:
java.util.EventListener, InterpolationListener, NavManager, org.web3d.x3d.sai.X3DFieldEventListener

public class X3DNavManager
extends java.lang.Object
implements NavManager, org.web3d.x3d.sai.X3DFieldEventListener, InterpolationListener

Manages the navigation components.

Version:
$Revision: 1.2 $
Author:
Rex Melton
See Also:
Profile, Position, Orientation

Method Summary
 void addNavigationListener(NavigationListener nl)
          Add a listener for NavigationEvents
 ReferenceFrame getActiveReferenceFrame()
          Return the current active navigation reference frame
 Orientation getOrientation()
          Return the current active navigation orientation
 Position getPosition()
          Return the current active navigation position
 void interpolationAction(InterpolationEvent ie)
          Listen for the completion of cockpit animations.
 void readableFieldChanged(org.web3d.x3d.sai.X3DFieldEvent xfe)
          X3D Field Event Listener
 void removeNavigationListener(NavigationListener nl)
          Remove a listener for NavigationEvents
 void run()
          The per-simulation-frame task, updates the navigation object properties.
 void setChronometer(Chronometer chronometer)
          Set the active Chronometer.
 void setHorizon(Horizon horizon)
          Set the Horizon object that calculates the orientation of the gravitational plane for the cockpit.
 void setOrientationControl(OrientationControl control)
          Set the user defined navigation control for orientation.
 void setPositionControl(PositionControl control)
          Set the user defined navigation control for position.
 void setX3DObjects(org.web3d.x3d.sai.ExternalBrowser newBrowser, org.web3d.x3d.sai.X3DScene newScene)
          Set the X3D objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()
The per-simulation-frame task, updates the navigation object properties.

Specified by:
run in interface NavManager

setChronometer

public void setChronometer(Chronometer chronometer)
Set the active Chronometer.

Specified by:
setChronometer in interface NavManager
Parameters:
chronometer - The Chronometer.

getPosition

public Position getPosition()
Return the current active navigation position

Specified by:
getPosition in interface NavManager
Returns:
the current active navigation position

getOrientation

public Orientation getOrientation()
Return the current active navigation orientation

Specified by:
getOrientation in interface NavManager
Returns:
the current active navigation orientation

getActiveReferenceFrame

public ReferenceFrame getActiveReferenceFrame()
Return the current active navigation reference frame

Specified by:
getActiveReferenceFrame in interface NavManager
Returns:
the current active navigation reference frame

setPositionControl

public void setPositionControl(PositionControl control)
Set the user defined navigation control for position.

Specified by:
setPositionControl in interface NavManager
Parameters:
control - The PositionControl

setOrientationControl

public void setOrientationControl(OrientationControl control)
Set the user defined navigation control for orientation.

Specified by:
setOrientationControl in interface NavManager
Parameters:
control - The OrientationControl

addNavigationListener

public void addNavigationListener(NavigationListener nl)
Add a listener for NavigationEvents

Specified by:
addNavigationListener in interface NavManager
Parameters:
nl - the listener

removeNavigationListener

public void removeNavigationListener(NavigationListener nl)
Remove a listener for NavigationEvents

Specified by:
removeNavigationListener in interface NavManager
Parameters:
nl - the listener

interpolationAction

public void interpolationAction(InterpolationEvent ie)
Listen for the completion of cockpit animations. Reconfigure the position and orientation objects.

Specified by:
interpolationAction in interface InterpolationListener

readableFieldChanged

public void readableFieldChanged(org.web3d.x3d.sai.X3DFieldEvent xfe)
X3D Field Event Listener

Specified by:
readableFieldChanged in interface org.web3d.x3d.sai.X3DFieldEventListener

setX3DObjects

public void setX3DObjects(org.web3d.x3d.sai.ExternalBrowser newBrowser,
                          org.web3d.x3d.sai.X3DScene newScene)
Set the X3D objects.

Parameters:
newBrowser - The X3DBrowser object.
newScene - The X3DScene object.

setHorizon

public void setHorizon(Horizon horizon)
Set the Horizon object that calculates the orientation of the gravitational plane for the cockpit.

Parameters:
horizon - The Horizon object.

Jeospace API

Copyright © 2006 - jeospace.org