public interface SceneGraphTraversalObserver
The observer will report the top of a use hierarchy. If the traverser, in it's internal references, detects a reference re-use then the flag will be passed indicating this state. Once a shared graph has been detected, the traverser does not further re-descend the shared state.
When reporting the parent node, if the root is the root node of the scene graph, the parent reference will be null.
| Modifier and Type | Method and Description |
|---|---|
void |
observedNode(SceneGraphObject parent,
SceneGraphObject child,
boolean shared,
int depth)
Notification of a scene graph object that has been traversed in the
scene.
|
void observedNode(SceneGraphObject parent, SceneGraphObject child, boolean shared, int depth)
parent - The parent node of this nodechild - The child node that is being observedshared - true if the object reference has already been traversed
and this is beyond the first referencedepth - The depth of traversal from the top of the tree. Starts at 0 for top.
Copyright © 2001 - 2015 j3d.org