public class TLspOpenFlight3DIcon extends Object implements ILsp3DIcon, ILcdInputStreamFactoryCapable
Constructor and Description |
---|
TLspOpenFlight3DIcon(ILcdOpenFlightNode aOpenFlightNode)
Creates a new OpenFlight 3D icon.
|
Modifier and Type | Method and Description |
---|---|
void |
addTextureSearchPath(String aPath)
Adds a directory to the list of paths to be searched for texture files.
|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdInputStreamFactory |
getInputStreamFactory()
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.
|
public TLspOpenFlight3DIcon(ILcdOpenFlightNode aOpenFlightNode)
aOpenFlightNode
- the OpenFlight node for which the icon is createdpublic void addTextureSearchPath(String aPath)
aPath
- the name of a directory containing texture imagespublic void paint(ILspGLState aGLState, ILcdGLDrawable aGLDrawable, TLspPaintPass aPass, TLspContext aContext)
ILsp3DIcon
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.
paint
in interface ILsp3DIcon
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 informationpublic ILcdBounds getBounds()
ILcdBounded
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
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
ILcdInputStreamFactoryCapable
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- the input stream factory to be used.public ILcdInputStreamFactory getInputStreamFactory()
ILcdInputStreamFactoryCapable
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable