Class ALcdOpenFlightSceneVisitor

java.lang.Object
com.luciad.format.object3d.openflight.model.ALcdOpenFlightSceneVisitor

public abstract class ALcdOpenFlightSceneVisitor extends Object
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 Details

    • ALcdOpenFlightSceneVisitor

      public ALcdOpenFlightSceneVisitor()
  • Method Details

    • traverseSceneGraph

      public void traverseSceneGraph(ILcdOpenFlightNode aOpenFlightNode)
      Traverses a scene graph starting at the specified node.
      Parameters:
      aOpenFlightNode - the starting node for the scene graph traversal
    • visitChildren

      protected final void visitChildren(ILcdOpenFlightNode aOpenFlightNode)
      Visits all child nodes of the specified node.
      Parameters:
      aOpenFlightNode - the node
    • visit

      public void visit(ILcdOpenFlightNode aNode)
      Called when the visitor encounters a ILcdOpenFlightNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightNode aNode)
      Called when the visitor encounters a TLcdOpenFlightNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightHeaderNode aNode)
      Called when the visitor encounters a TLcdOpenFlightHeaderNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightInstanceDefinitionNode aNode)
      Called when the visitor encounters a TLcdOpenFlightInstanceDefinitionNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightInstanceReferenceNode aNode)
      Called when the visitor encounters a TLcdOpenFlightInstanceReferenceNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightFaceNode aNode)
      Called when the visitor encounters a TLcdOpenFlightFaceNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightVertexNode aNode)
      Called when the visitor encounters a TLcdOpenFlightNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightTransformableNode aNode)
      Called when the visitor encounters a TLcdOpenFlightNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightSwitchNode aNode)
      Called when the visitor encounters a TLcdOpenFlightTransformableNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightBSPNode aNode)
      Called when the visitor encounters a TLcdOpenFlightBSPNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightExternalReferenceNode aNode)
      Called when the visitor encounters a TLcdOpenFlightExternalReferenceNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightGeometryNode aNode)
      Called when the visitor encounters a TLcdOpenFlightGeometryNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightLevelOfDetailNode aNode)
      Called when the visitor encounters a TLcdOpenFlightLevelOfDetailNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightObjectNode aNode)
      Called when the visitor encounters a TLcdOpenFlightObjectNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightSubFaceNode aNode)
      Called when the visitor encounters a TLcdOpenFlightSubFaceNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightDegreeOfFreedomNode aNode)
      Called when the visitor encounters a TLcdOpenFlightDegreeOfFreedomNode object.
      Parameters:
      aNode - the node
    • visit

      public void visit(TLcdOpenFlightGroupNode aNode)
      Called when the visitor encounters a TLcdOpenFlightGroupNode object.
      Parameters:
      aNode - the node