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
ConstructorDescriptionTLspOpenFlight3DIcon
(ILcdOpenFlightNode aOpenFlightNode) Creates a new OpenFlight 3D icon. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTextureSearchPath
(String aPath) Adds a directory to the list of paths to be searched for texture files.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.Returns the input stream factory that is used.void
paint
(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext) Paints the icon to the specified ILcdGLDrawable.void
setInputStreamFactory
(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: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 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:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
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 ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
setInputStreamFactory
Description copied from interface:ILcdInputStreamFactoryCapable
Sets the input stream factory to be used.- Specified by:
setInputStreamFactory
in interfaceILcdInputStreamFactoryCapable
- Parameters:
aInputStreamFactory
- the input stream factory to be used.
-
getInputStreamFactory
Description copied from interface:ILcdInputStreamFactoryCapable
Returns the input stream factory that is used.- Specified by:
getInputStreamFactory
in interfaceILcdInputStreamFactoryCapable
- Returns:
- the input stream factory that is used.
-