Class TLspOpenFlight3DIcon

java.lang.Object
com.luciad.format.object3d.openflight.lightspeed.TLspOpenFlight3DIcon
All Implemented Interfaces:
ILcdInputStreamFactoryCapable, ILcdBounded, ILsp3DIcon

public class TLspOpenFlight3DIcon extends Object implements ILsp3DIcon, ILcdInputStreamFactoryCapable
An implementation of ILsp3DIcon that draws an OpenFlight model.
Since:
2012.0
  • Constructor Details

    • TLspOpenFlight3DIcon

      public TLspOpenFlight3DIcon(ILcdOpenFlightNode aOpenFlightNode)
      Creates a new OpenFlight 3D icon.
      Parameters:
      aOpenFlightNode - the OpenFlight node for which the icon is created
  • Method Details

    • addTextureSearchPath

      public void addTextureSearchPath(String aPath)
      Adds a directory to the list of paths to be searched for texture files.
      Parameters:
      aPath - the name of a directory containing texture images
    • paint

      public void paint(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext)
      Description copied from interface: ILsp3DIcon
      Paints the icon to the specified ILcdGLDrawable.

      The caller is responsible for setting up any desired transformations or other application-specific OpenGL state beforehand.

      The icon should not paint anything outside of the bounding box it returns from its getBounds() method.

      Specified by:
      paint in interface ILsp3DIcon
      Parameters:
      aGLState - a GL state that defines transformations that must be applied to the basic icon before painting it.
      aGLDrawable - an ILcdGLDrawable
      aPass - the current paint pass
      aContext - provides context information
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.

      If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an undefined bounds. You can create undefined bounds using the default constructors of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • setInputStreamFactory

      public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
      Description copied from interface: ILcdInputStreamFactoryCapable
      Sets the input stream factory to be used.
      Specified by:
      setInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Parameters:
      aInputStreamFactory - the input stream factory to be used.
    • getInputStreamFactory

      public ILcdInputStreamFactory getInputStreamFactory()
      Description copied from interface: ILcdInputStreamFactoryCapable
      Returns the input stream factory that is used.
      Specified by:
      getInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Returns:
      the input stream factory that is used.