Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.util
Interface SceneGraphTraversalObserver

All Known Implementing Classes:
ScenePrinter

public interface SceneGraphTraversalObserver

An observer interface that reports on the scene graph traversal state.

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.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Method Summary
 void observedNode(SceneGraphObject parent, SceneGraphObject child, boolean shared, int depth)
          Notification of a scene graph object that has been traversed in the scene.
 

Method Detail

observedNode

void observedNode(SceneGraphObject parent,
                  SceneGraphObject child,
                  boolean shared,
                  int depth)
Notification of a scene graph object that has been traversed in the scene.

Parameters:
parent - The parent node of this node
child - The child node that is being observed
shared - true if the object reference has already been traversed and this is beyond the first reference
depth - The depth of traversal from the top of the tree. Starts at 0 for top.

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org