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 Summary
ConstructorsConstructorDescriptionTLspOpenFlight3DIcon(ILcdOpenFlightNode aOpenFlightNode) Creates a new OpenFlight 3D icon. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTextureSearchPath(String aPath) Adds a directory to the list of paths to be searched for texture files.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the input stream factory that is used.voidpaint(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext) Paints the icon to the specified ILcdGLDrawable.voidsetInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory) Sets the input stream factory to be used.
-
Constructor Details
-
TLspOpenFlight3DIcon
Creates a new OpenFlight 3D icon.- Parameters:
aOpenFlightNode- the OpenFlight node for which the icon is created
-
-
Method Details
-
addTextureSearchPath
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:ILsp3DIconPaints 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:
paintin interfaceILsp3DIcon- Parameters:
aGLState- a GL state that defines transformations that must be applied to the basic icon before painting it.aGLDrawable- an ILcdGLDrawableaPass- the current paint passaContext- provides context information
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
setInputStreamFactory
Description copied from interface:ILcdInputStreamFactoryCapableSets the input stream factory to be used.- Specified by:
setInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Parameters:
aInputStreamFactory- the input stream factory to be used.
-
getInputStreamFactory
Description copied from interface:ILcdInputStreamFactoryCapableReturns the input stream factory that is used.- Specified by:
getInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Returns:
- the input stream factory that is used.
-