|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A representation of a manager that handles the current frame state and the listeners that wish to know about it.
| Method Summary | |
void |
addEndOfThisFrameListener(FrameStateListener l)
Add a listener that is interested in knowing when the end of this frame is reached. |
void |
clear()
Force clearing all state from this manager now. |
void |
clearAddedNodes()
Clear all registered added nodes now |
void |
clearAddedScenes()
Clear all registered added scenes now |
void |
clearRemovedNodes()
Clear all registered removed nodes now |
void |
clearRemovedScenes()
Clear all registered removed scenes now |
void |
frameFinished()
Notification that the current frame is finished. |
NodeArray |
getAddedBindables()
Get the added bindable nodes from this last frame. |
NodeTemplateArray |
getAddedExternProtos()
Get the added extern proto instances. |
NodeArray |
getAddedExtSynchronizedNodes()
Get the added externally synchronised nodes from this last frame. |
NodeArray |
getAddedNodes(int type)
Get all the added nodes of the named type. |
ObjectArray |
getAddedScenes()
Get the scenes that have inserted during this last frame. |
NodeArray |
getAddedScripts()
Get the added scripts from this last frame. |
NodeArray |
getAddedSensors()
Get the added Sensors. |
NodeArray |
getAddedTerrains()
Get the added terrain sources from this last frame. |
NodeArray |
getAddedUrlNodes()
Get the added nodes with URL fields that will need to have their content loaded for the first time. |
NodeArray |
getAddedViewDependents()
Get the list of nodes that require view-dependent updates. |
NodeArray |
getRemovedBindables()
Get all the removed bindable nodes. |
NodeArray |
getRemovedExtSynchronizedNodes()
Get the removed externally synchronised nodes from this last frame. |
NodeArray |
getRemovedNodes(int type)
Get all the removed nodes of the named type. |
ObjectArray |
getRemovedScenes()
Get the scenes that have removed or replaced during this last frame. |
NodeArray |
getRemovedScripts()
Get all the removed script nodes. |
NodeArray |
getRemovedSensors()
Get the removed sensors. |
NodeArray |
getRemovedTerrains()
Get the removed nodes from this last frame of this specified type. |
NodeArray |
getRemovedViewDependents()
Get the list of nodes that require view-dependent updates. |
void |
listenFor(int[] types)
Instruct the state manager that you're interested in keeping track of nodes that have been added or removed of the given list of types. |
void |
registerAddedExternProto(VRMLNodeTemplate proto)
Register an externproto declaration as having been loaded this frame. |
void |
registerAddedNode(VRMLNode node)
Register a node that has been added this frame. |
void |
registerAddedNodes(VRMLNode[] nodes)
Register nodes that have been added this frame. |
void |
registerAddedScene(VRMLExecutionSpace space)
Register an execution space that has been added in this frame. |
void |
registerRemovedNode(VRMLNode node)
Register a node that has been removed this frame. |
void |
registerRemovedNodes(VRMLNode[] nodes)
Register nodes that have been removed this frame. |
void |
registerRemovedScene(VRMLExecutionSpace space)
Register an execution space that has been removed in this frame. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the manager so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void listenFor(int[] types)
types - An array of types to listen forpublic void clear()
public void frameFinished()
public void addEndOfThisFrameListener(FrameStateListener l)
l - The listener to addpublic void registerRemovedNode(VRMLNode node)
node - The reference to the node that has been removedpublic void registerRemovedNodes(VRMLNode[] nodes)
nodes - The reference to the nodes that has been removedpublic void registerRemovedScene(VRMLExecutionSpace space)
space - The space that has been removed this framepublic void registerAddedNode(VRMLNode node)
node - The reference to the node that has been removedpublic void registerAddedNodes(VRMLNode[] nodes)
nodes - The reference to the nodes that has been addedpublic void registerAddedScene(VRMLExecutionSpace space)
space - The space that has been added this framepublic void registerAddedExternProto(VRMLNodeTemplate proto)
proto - The proto declaration instance to addpublic void clearRemovedNodes()
public void clearAddedNodes()
public void clearRemovedScenes()
public void clearAddedScenes()
public NodeArray getRemovedNodes(int type)
type - The TypeConstant primary type to get the list for
public NodeArray getRemovedScripts()
public NodeArray getRemovedSensors()
public ObjectArray getRemovedScenes()
BasicScene.
public NodeArray getRemovedViewDependents()
public NodeArray getRemovedBindables()
public NodeArray getRemovedTerrains()
public NodeArray getRemovedExtSynchronizedNodes()
public NodeArray getAddedNodes(int type)
type - The TypeConstant primary type to get the list for
public NodeArray getAddedSensors()
public ObjectArray getAddedScenes()
BasicScene.
public NodeArray getAddedUrlNodes()
public NodeArray getAddedScripts()
public NodeArray getAddedViewDependents()
public NodeArray getAddedBindables()
public NodeArray getAddedTerrains()
public NodeArray getAddedExtSynchronizedNodes()
public NodeTemplateArray getAddedExternProtos()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||