Class TLcdOpenFlightTransformableNode

java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
All Implemented Interfaces:
ILcd3DMeshNode, ILcdOpenFlightNode
Direct Known Subclasses:
TLcdOpenFlightBSPNode, TLcdOpenFlightExternalReferenceNode, TLcdOpenFlightGeometryNode, TLcdOpenFlightSwitchNode

public class TLcdOpenFlightTransformableNode extends TLcdOpenFlightNode
Base class for nodes that support transformation of their subtrees.
  • Constructor Details

    • TLcdOpenFlightTransformableNode

      public TLcdOpenFlightTransformableNode(ILcdOpenFlightNode aParent)
  • Method Details

    • getTransformation

      public double[] getTransformation()
      Description copied from interface: ILcd3DMeshNode
      Returns a transformation matrix that applies to this node and its children. The matrix should be 4x4 elements in column-major order. This is the same convention used by OpenGL functions such as glLoadMatrix(). null can be returned and represents the identity matrix.
      Specified by:
      getTransformation in interface ILcd3DMeshNode
      Overrides:
      getTransformation in class TLcdOpenFlightNode
      Returns:
      a 4x4 column-major transformation matrix, possibly null
    • setTransformation

      public void setTransformation(double[] aMatrix4x4)
      Sets this node's transformation matrix. The matrix must be 4x4 elements and be in column major form. null values are allowed, and will be more efficient than specifying an identity matrix.
      Parameters:
      aMatrix4x4 - a 16-element double array defining a 4x4 transformation matrix
    • 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