|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An abstract representation of a class that would be responsible for performing all the event model computations and organisation on a per-frame basis.
This class allows extensibility of the event model implementation by both providing an abstract view of the event model, but also allowing individual node types to have their own managers that are dealt with by the event model.
| Method Summary | |
void |
addExternalView(ExternalView view)
Add an external view to the evaluator. |
void |
clear()
Force clearing all state from this manager now. |
void |
evaluate(long time)
Run the event model for this frame now. |
BindableNodeManager |
getBindableManager(int type)
Get the bindable node manager for the given node type. |
ExternalLoadManager |
getContentLoader()
Get the content loader in use by the evaluator. |
FrameStateManager |
getFrameStateManager()
Get the frame state manager in use by the evaluator. |
NodeManager[] |
getNodeManagers()
Get the list of external node managers currently in use. |
RouteManager |
getRouteManager()
Get the route manager in use by the evaluator. |
ScriptManager |
getScriptManager()
Get the script manager in use by the evaluator. |
SensorManager |
getSensorManager()
Get the sensor manager in use by the evaluator. |
VRMLClock |
getVRMLClock()
Get the VRMLClock instance in use by this evaluator. |
void |
initialize(ScriptManager scripts,
RouteManager router,
SensorManager sensors,
FrameStateManager fsm,
ExternalLoadManager elm,
ViewpointManager vm,
NodeManager[] extManagers)
Initialise the evaluator with the given managers. |
void |
removeExternalView(ExternalView view)
Remove the external view from this evaluator. |
void |
setDefaultBindables(VRMLViewpointNodeType dvp,
VRMLNavigationInfoNodeType dni,
VRMLBackgroundNodeType dbg,
VRMLFogNodeType dfg)
Set the default bindable instances to use. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
void |
setInitListener(EventModelInitListener l)
Set the listener for intialisation information. |
void |
setScene(VRMLScene scene,
java.lang.String useView)
Used to set the scene to the new content. |
void |
shutdown()
Shutdown the node manager now. |
| Method Detail |
public void initialize(ScriptManager scripts,
RouteManager router,
SensorManager sensors,
FrameStateManager fsm,
ExternalLoadManager elm,
ViewpointManager vm,
NodeManager[] extManagers)
scripts - The manager for loading scriptsrouter - The manager for handling routessensors - The manager for all sensorsfsm - State manager for the frameelm - Manager for loading external contentextManagers - List of external managers to handlepublic void shutdown()
public void setDefaultBindables(VRMLViewpointNodeType dvp,
VRMLNavigationInfoNodeType dni,
VRMLBackgroundNodeType dbg,
VRMLFogNodeType dfg)
dvp - The default Viewpoint to usedni - The default NavigationInfo to usedbg - The default Background to usedfg - The default Fog to usepublic void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void addExternalView(ExternalView view)
view - The new view to addpublic void removeExternalView(ExternalView view)
view - The new view to removepublic BindableNodeManager getBindableManager(int type)
type - The type constant of the node type for the manager
TypeConstantspublic VRMLClock getVRMLClock()
public void evaluate(long time)
time - The timestamp of this frame to evaluate
public void setScene(VRMLScene scene,
java.lang.String useView)
scene - The new scene instance to use.useView - The initial viewpoint DEF name to bind to,
Null means normal speced viewpoint.public void clear()
public SensorManager getSensorManager()
public ScriptManager getScriptManager()
public RouteManager getRouteManager()
public ExternalLoadManager getContentLoader()
public FrameStateManager getFrameStateManager()
public NodeManager[] getNodeManagers()
public void setInitListener(EventModelInitListener l)
l - The listener instance to set
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||