public abstract class ALcdOpenFlightSceneVisitor extends Object
visit
method will call the implementation that accepts the parent type of the node. For instance, the parent type of
TLcdOpenFlightObjectNode
is TLcdOpenFlightGeometryNode
so visit(TLcdOpenFlightObjectNode)
is implemented as a call to visit(TLcdOpenFlightGeometryNode)
. This allows subclasses to easily implement
behaviour that is common for all nodes of a certain parent type without having to override all the visit methods for
each subtype.
The visit implementation for ILcdOpenFlightNode
simply visits all the children of the node.Constructor and Description |
---|
ALcdOpenFlightSceneVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
traverseSceneGraph(ILcdOpenFlightNode aOpenFlightNode)
Traverses a scene graph starting at the specified node.
|
void |
visit(ILcdOpenFlightNode aNode)
Called when the visitor encounters a
ILcdOpenFlightNode object. |
void |
visit(TLcdOpenFlightBSPNode aNode)
Called when the visitor encounters a
TLcdOpenFlightBSPNode object. |
void |
visit(TLcdOpenFlightDegreeOfFreedomNode aNode)
Called when the visitor encounters a
TLcdOpenFlightDegreeOfFreedomNode object. |
void |
visit(TLcdOpenFlightExternalReferenceNode aNode)
Called when the visitor encounters a
TLcdOpenFlightExternalReferenceNode object. |
void |
visit(TLcdOpenFlightFaceNode aNode)
Called when the visitor encounters a
TLcdOpenFlightFaceNode object. |
void |
visit(TLcdOpenFlightGeometryNode aNode)
Called when the visitor encounters a
TLcdOpenFlightGeometryNode object. |
void |
visit(TLcdOpenFlightGroupNode aNode)
Called when the visitor encounters a
TLcdOpenFlightGroupNode object. |
void |
visit(TLcdOpenFlightHeaderNode aNode)
Called when the visitor encounters a
TLcdOpenFlightHeaderNode object. |
void |
visit(TLcdOpenFlightInstanceDefinitionNode aNode)
Called when the visitor encounters a
TLcdOpenFlightInstanceDefinitionNode object. |
void |
visit(TLcdOpenFlightInstanceReferenceNode aNode)
Called when the visitor encounters a
TLcdOpenFlightInstanceReferenceNode object. |
void |
visit(TLcdOpenFlightLevelOfDetailNode aNode)
Called when the visitor encounters a
TLcdOpenFlightLevelOfDetailNode object. |
void |
visit(TLcdOpenFlightNode aNode)
Called when the visitor encounters a
TLcdOpenFlightNode object. |
void |
visit(TLcdOpenFlightObjectNode aNode)
Called when the visitor encounters a
TLcdOpenFlightObjectNode object. |
void |
visit(TLcdOpenFlightSubFaceNode aNode)
Called when the visitor encounters a
TLcdOpenFlightSubFaceNode object. |
void |
visit(TLcdOpenFlightSwitchNode aNode)
Called when the visitor encounters a
TLcdOpenFlightTransformableNode object. |
void |
visit(TLcdOpenFlightTransformableNode aNode)
Called when the visitor encounters a
TLcdOpenFlightNode object. |
void |
visit(TLcdOpenFlightVertexNode aNode)
Called when the visitor encounters a
TLcdOpenFlightNode object. |
protected void |
visitChildren(ILcdOpenFlightNode aOpenFlightNode)
Visits all child nodes of the specified node.
|
public void traverseSceneGraph(ILcdOpenFlightNode aOpenFlightNode)
aOpenFlightNode
- the starting node for the scene graph traversalprotected final void visitChildren(ILcdOpenFlightNode aOpenFlightNode)
aOpenFlightNode
- the nodepublic void visit(ILcdOpenFlightNode aNode)
ILcdOpenFlightNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightNode aNode)
TLcdOpenFlightNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightHeaderNode aNode)
TLcdOpenFlightHeaderNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightInstanceDefinitionNode aNode)
TLcdOpenFlightInstanceDefinitionNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightInstanceReferenceNode aNode)
TLcdOpenFlightInstanceReferenceNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightFaceNode aNode)
TLcdOpenFlightFaceNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightVertexNode aNode)
TLcdOpenFlightNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightTransformableNode aNode)
TLcdOpenFlightNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightSwitchNode aNode)
TLcdOpenFlightTransformableNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightBSPNode aNode)
TLcdOpenFlightBSPNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightExternalReferenceNode aNode)
TLcdOpenFlightExternalReferenceNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightGeometryNode aNode)
TLcdOpenFlightGeometryNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightLevelOfDetailNode aNode)
TLcdOpenFlightLevelOfDetailNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightObjectNode aNode)
TLcdOpenFlightObjectNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightSubFaceNode aNode)
TLcdOpenFlightSubFaceNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightDegreeOfFreedomNode aNode)
TLcdOpenFlightDegreeOfFreedomNode
object.aNode
- the nodepublic void visit(TLcdOpenFlightGroupNode aNode)
TLcdOpenFlightGroupNode
object.aNode
- the node