de.grogra.imp3d.objects
public static interface SceneTree.Visitor
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".| Modifier and Type | Method and Description |
|---|---|
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.
|
void visit(SceneTree.Leaf node)
node - the leaf being visitedvoid visitEnter(SceneTree.InnerNode node)
node - the node being enteredvoid visitLeave(SceneTree.InnerNode node)
node - the node being left