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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtraverseSceneGraph(ILcdOpenFlightNode aOpenFlightNode) Traverses a scene graph starting at the specified node.voidvisit(ILcdOpenFlightNode aNode) Called when the visitor encounters aILcdOpenFlightNodeobject.voidvisit(TLcdOpenFlightBSPNode aNode) Called when the visitor encounters aTLcdOpenFlightBSPNodeobject.voidCalled when the visitor encounters aTLcdOpenFlightDegreeOfFreedomNodeobject.voidCalled when the visitor encounters aTLcdOpenFlightExternalReferenceNodeobject.voidvisit(TLcdOpenFlightFaceNode aNode) Called when the visitor encounters aTLcdOpenFlightFaceNodeobject.voidvisit(TLcdOpenFlightGeometryNode aNode) Called when the visitor encounters aTLcdOpenFlightGeometryNodeobject.voidvisit(TLcdOpenFlightGroupNode aNode) Called when the visitor encounters aTLcdOpenFlightGroupNodeobject.voidvisit(TLcdOpenFlightHeaderNode aNode) Called when the visitor encounters aTLcdOpenFlightHeaderNodeobject.voidCalled when the visitor encounters aTLcdOpenFlightInstanceDefinitionNodeobject.voidCalled when the visitor encounters aTLcdOpenFlightInstanceReferenceNodeobject.voidCalled when the visitor encounters aTLcdOpenFlightLevelOfDetailNodeobject.voidvisit(TLcdOpenFlightNode aNode) Called when the visitor encounters aTLcdOpenFlightNodeobject.voidvisit(TLcdOpenFlightObjectNode aNode) Called when the visitor encounters aTLcdOpenFlightObjectNodeobject.voidvisit(TLcdOpenFlightSubFaceNode aNode) Called when the visitor encounters aTLcdOpenFlightSubFaceNodeobject.voidvisit(TLcdOpenFlightSwitchNode aNode) Called when the visitor encounters aTLcdOpenFlightTransformableNodeobject.voidCalled when the visitor encounters aTLcdOpenFlightNodeobject.voidvisit(TLcdOpenFlightVertexNode aNode) Called when the visitor encounters aTLcdOpenFlightNodeobject.protected final voidvisitChildren(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 aILcdOpenFlightNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightHeaderNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightInstanceDefinitionNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightInstanceReferenceNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightFaceNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightTransformableNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightBSPNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightExternalReferenceNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightGeometryNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightLevelOfDetailNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightObjectNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightSubFaceNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightDegreeOfFreedomNodeobject.- Parameters:
aNode- the node
-
visit
Called when the visitor encounters aTLcdOpenFlightGroupNodeobject.- Parameters:
aNode- the node
-