public class SceneGraphTraverser extends Object
SceneGraphTraversalObserver. This code is not multi-thread safe.
Internationalisation Resource Names
| Constructor and Description |
|---|
SceneGraphTraverser()
Create a new traverser ready to go.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Clear the use map.
|
void |
setErrorReporter(org.j3d.util.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(SceneGraphTraversalObserver obs)
Set the detailObs to be used.
|
void |
traverseGraph(SceneGraphObject source)
Traverse the given scene graph now.
|
void |
traverseGraph(SceneGraphObject parent,
SceneGraphObject source)
Traverse the given scene graph now with the option of providing an
explicit, parent reference.
|
public SceneGraphTraverser()
public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
reporter - The instance to use or nullpublic void setObserver(SceneGraphTraversalObserver obs)
obs - The new detailObs reference to usepublic void traverseGraph(SceneGraphObject source) throws IllegalStateException
traverseGraph(null, source);.source - The root of the scene graph to traverseIllegalStateException - Attempt to call this method while it is
currently traversing a scene graphpublic void traverseGraph(SceneGraphObject parent, SceneGraphObject source) throws 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 traverseIllegalStateException - Attempt to call this method while it is
currently traversing a scene graphpublic void reset()
Copyright © 2001 - 2015 j3d.org