|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.nodes.SceneGraphTraverser
Utility class that traverses a live VRML scene graph.
| Constructor Summary | |
SceneGraphTraverser()
Create a new traverser ready to go. |
|
| Method Summary | |
void |
reset()
Clear the use map. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the script code can be reported in a nice, pretty fashion. |
void |
setObserver(SceneGraphTraversalDetailObserver obs)
Set the detailObs to be used. |
void |
setObserver(SceneGraphTraversalSimpleObserver obs)
Set the detailObs to be used. |
void |
traverseGraph(VRMLNode source)
Traverse the given scene graph now. |
void |
traverseGraph(VRMLNode parent,
VRMLNode source)
Traverse the given scene graph now with the option of providing an explicit, parent reference. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SceneGraphTraverser()
| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void setObserver(SceneGraphTraversalDetailObserver obs)
obs - The new detailObs reference to usepublic void setObserver(SceneGraphTraversalSimpleObserver obs)
obs - The new detailObs reference to use
public void traverseGraph(VRMLNode source)
throws java.lang.IllegalStateException
traverseGraph(null, source);.
source - The root of the scene graph to traverse
java.lang.IllegalStateException - Attempt to call this method while it is
currently traversing a scene graph
public void traverseGraph(VRMLNode parent,
VRMLNode source)
throws java.lang.IllegalStateException
A explicit root may be provided for various reasons. The most common would be for loading externprotos where the root of the traversed graph is actually going to be in a separate file and scene graph structure from where we are starting this traversal from.
source - The root of the scene graph to traverse
java.lang.IllegalStateException - Attempt to call this method while it is
currently traversing a scene graphpublic void reset()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||