Class ALcdOpenFlightSceneTraverser
java.lang.Object
com.luciad.format.object3d.openflight.model.ALcdOpenFlightSceneTraverser
Abstract base class for traversing OpenFlight scene graphs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
enterSubtree
(ILcdOpenFlightNode aOpenFlightNode) Visits the given OpenFlight node.abstract void
exitSubtree
(ILcdOpenFlightNode aOpenFlightNode) Called after the given node and its children have been visited.void
traverseSceneGraph
(ILcdOpenFlightNode aOpenFlightNode) Recursively traverses the given OpenFlight node.
-
Constructor Details
-
ALcdOpenFlightSceneTraverser
public ALcdOpenFlightSceneTraverser()
-
-
Method Details
-
traverseSceneGraph
Recursively traverses the given OpenFlight node. Traversal is interrupted when enterSubtree() returns false. Otherwise, traversal continues with the current node's children, and exitSubtree() will be called when the visitor arrives back at the current node.- Parameters:
aOpenFlightNode
- the node to be traversed- See Also:
-
enterSubtree
Visits the given OpenFlight node. After processing the given node, this method should return true if it wishes for traversal to continue with the node's children, or false if it wishes for traversal to end here and return immediately to the node's parent.- Parameters:
aOpenFlightNode
- the node to be visited- Returns:
- true if traversal should continue with the node's children
-
exitSubtree
Called after the given node and its children have been visited. This method will not be called if enterSubtree() returned false for this node.- Parameters:
aOpenFlightNode
- the node that has just been visited
-