Class ALcdOpenFlightSceneVisitor
java.lang.Object
com.luciad.format.object3d.openflight.model.ALcdOpenFlightSceneVisitor
Base class for OpenFlight scenegraph visitors. The visit methods of this class have been chained according
to the inheritance hierarchy of the different OpenFlight node types. Each implementation of the
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
traverseSceneGraph
(ILcdOpenFlightNode aOpenFlightNode) Traverses a scene graph starting at the specified node.void
visit
(ILcdOpenFlightNode aNode) Called when the visitor encounters aILcdOpenFlightNode
object.void
visit
(TLcdOpenFlightBSPNode aNode) Called when the visitor encounters aTLcdOpenFlightBSPNode
object.void
Called when the visitor encounters aTLcdOpenFlightDegreeOfFreedomNode
object.void
Called when the visitor encounters aTLcdOpenFlightExternalReferenceNode
object.void
visit
(TLcdOpenFlightFaceNode aNode) Called when the visitor encounters aTLcdOpenFlightFaceNode
object.void
visit
(TLcdOpenFlightGeometryNode aNode) Called when the visitor encounters aTLcdOpenFlightGeometryNode
object.void
visit
(TLcdOpenFlightGroupNode aNode) Called when the visitor encounters aTLcdOpenFlightGroupNode
object.void
visit
(TLcdOpenFlightHeaderNode aNode) Called when the visitor encounters aTLcdOpenFlightHeaderNode
object.void
Called when the visitor encounters aTLcdOpenFlightInstanceDefinitionNode
object.void
Called when the visitor encounters aTLcdOpenFlightInstanceReferenceNode
object.void
Called when the visitor encounters aTLcdOpenFlightLevelOfDetailNode
object.void
visit
(TLcdOpenFlightNode aNode) Called when the visitor encounters aTLcdOpenFlightNode
object.void
visit
(TLcdOpenFlightObjectNode aNode) Called when the visitor encounters aTLcdOpenFlightObjectNode
object.void
visit
(TLcdOpenFlightSubFaceNode aNode) Called when the visitor encounters aTLcdOpenFlightSubFaceNode
object.void
visit
(TLcdOpenFlightSwitchNode aNode) Called when the visitor encounters aTLcdOpenFlightTransformableNode
object.void
Called when the visitor encounters aTLcdOpenFlightNode
object.void
visit
(TLcdOpenFlightVertexNode aNode) Called when the visitor encounters aTLcdOpenFlightNode
object.protected final void
visitChildren
(ILcdOpenFlightNode aOpenFlightNode) Visits all child nodes of the specified node.
-
Constructor Details
-
ALcdOpenFlightSceneVisitor
public ALcdOpenFlightSceneVisitor()
-
-
Method Details
-
traverseSceneGraph
Traverses a scene graph starting at the specified node.- Parameters:
aOpenFlightNode
- the starting node for the scene graph traversal
-
visitChildren
Visits all child nodes of the specified node.- Parameters:
aOpenFlightNode
- the node
-
visit
Called when the visitor encounters aILcdOpenFlightNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightHeaderNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightInstanceDefinitionNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightInstanceReferenceNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightFaceNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightTransformableNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightBSPNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightExternalReferenceNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightGeometryNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightLevelOfDetailNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightObjectNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightSubFaceNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightDegreeOfFreedomNode
object.- Parameters:
aNode
- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightGroupNode
object.- Parameters:
aNode
- the node
-