|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.renderer.aviatrix3d.util.SceneGraphTraverser
public class SceneGraphTraverser
Utility class that traverses an Aviatrix3D scene graph, reporting
values to the end user through the use of the
SceneGraphTraversalObserver
.
Constructor Summary | |
---|---|
SceneGraphTraverser()
Create a new traverser ready to go. |
Method Summary | |
---|---|
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. |
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(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 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 graphpublic void traverseGraph(SceneGraphObject parent, SceneGraphObject 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()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |