de.grogra.imp3d.objects
Interface SceneTree.Visitor

All Known Implementing Classes:
ClassicVRMLExport, MTGExport, SceneGraphExport, VRML97Export, X3DExport
Enclosing class:
SceneTree

public static interface SceneTree.Visitor

A Visitor is used to visit a SceneTree. On invocation of SceneTree.accept(Visitor), the complete tree is passed to the specified visitor. This interface follows the design pattern "Hierarchical Visitor".

Author:
Ole Kniemeyer

Method Summary
 void visit(SceneTree.Leaf node)
          Informs the visitor that a leaf is visited.
 void visitEnter(SceneTree.InnerNode node)
          Informs the visitor that an inner node has been entered.
 void visitLeave(SceneTree.InnerNode node)
          Informs the visitor that an inner node has been left.
 

Method Detail

visit

void visit(SceneTree.Leaf node)
Informs the visitor that a leaf is visited.

Parameters:
node - the leaf being visited

visitEnter

void visitEnter(SceneTree.InnerNode node)
Informs the visitor that an inner node has been entered.

Parameters:
node - the node being entered

visitLeave

void visitLeave(SceneTree.InnerNode node)
Informs the visitor that an inner node has been left.

Parameters:
node - the node being left