org.xith3d.scenegraph.traversal
Interface TraversalCallback

All Known Implementing Classes:
AppearanceTraversal, MaterialTraversal, PickableTraversal, PolygonCounter, RenderingAttributesTraversal, ShapeFinder, VertexCounter

public interface TraversalCallback

An implementation of this interface is passed to the traverse method of a Node to implement the traversal operation.


Method Summary
 boolean traversalCheckGroup(GroupNode group)
          This method is called for each Group in the traversal.
 boolean traversalOperation(Node node)
          This method is called for each Node in the traversed Group.
 

Method Detail

traversalOperation

boolean traversalOperation(Node node)
This method is called for each Node in the traversed Group. It implements the operation to be done for the Nodes.

Parameters:
node - the current Node in the traversal
Returns:
if false, the traversal is stopped after this node

traversalCheckGroup

boolean traversalCheckGroup(GroupNode group)
This method is called for each Group in the traversal. It must return true to be further traversed (and its children)

Parameters:
group - the Group to be checked
Returns:
if false the traversal is not stopped, but the children are not further traversed