Interface SceneGraphTraversalDetailObserver


public interface SceneGraphTraversalDetailObserver
An observer interface to look at the structure of the VRML runtime scene graph presented by the SceneGraphTraverser.

As this interface is an observer of the traversal process, it may perform many tasks, such as building an equivalent API. However, it should not attempt to make calls back to this class. For speed reasons, only one observer can be registered at a time. We feel this is the most common way that the class will be used (usually to generate alternate scene graphs) and the overheads of dealing with loops for multiple observers is not worth it.

The observer will report the top of a use hierarchy. If the traverser, in it's internal references, detects a reference re-use that is indicative of a DEF/USE situation then the flag passed with each method call will be set true. After reporting the USE, the traverser will not descend that part of the scene graph any further.

When reporting the parent node, if the root is the root node of the VRML file or the body of a Proto, the parent reference will be null - regardless of the type of node.

Version:
$Revision: 1.2 $
Author:
Justin Couch