Class TLcdOpenFlightVertexNode

java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightVertexNode
All Implemented Interfaces:
ILcd3DMeshNode, ILcdOpenFlightNode

public class TLcdOpenFlightVertexNode extends TLcdOpenFlightNode
A vertex node. May appear below a face node, and defines the actual geometry of that face.

Please refer to the OpenFlight specification for more details on the semantics of this node and its properties.

See Also:
  • Constructor Details

  • Method Details

    • setVertices

      public void setVertices(int[] aVertices)
      Sets the list of vertices referenced by this vertex node. This method takes an index list (as appearing in the OpenFlight file), and looks up the corresponding vertices in the vertex palette.
      Parameters:
      aVertices - an array of integer vertex indices
    • getVertices

      public TLcdOpenFlightVertex[] getVertices()
      Returns the vertices referenced by this vertex node.
      Returns:
      an array of TLcdOpenFlightVertex objects
    • addChild

      public void addChild(ILcdOpenFlightNode aChild)
      Overridden to enforce that vertex nodes are always leaves in the scene graph. Will throw an IllegalStateException if called.
      Overrides:
      addChild in class TLcdOpenFlightNode
      Parameters:
      aChild - the ILcdOpenFlightNode to be added below this node
    • accept

      public void accept(ALcdOpenFlightSceneVisitor aVisitor)
      Description copied from interface: ILcdOpenFlightNode
      Accepts an OpenFlight visitor. A typical implementation of this method should call aVisitor.visit(this).
      Specified by:
      accept in interface ILcdOpenFlightNode
      Overrides:
      accept in class TLcdOpenFlightNode
      Parameters:
      aVisitor - the visitor to accept