public class TLcdOpenFlightFileDecoder extends Object implements ILcdInputStreamFactoryCapable
TLsp3DIconStyle
containing the OpenFlight icon.
This icon style can then be used as style for your point.
The creation of the icon style is illustrated in the following snippet:
TLsp3DIconStyle iconStyle = TLsp3DIconStyle.newBuilder().icon( "iconFile.flt" ).build();
The LuciadLightspeed developer guide contains more information on how to use the created
TLsp3DIconStyle
in your layer factory.
Note that Lightspeed also supports the use of Collada data for 3D icons.
See the package documentation of com.luciad.format.object3d
for more information.Constructor and Description |
---|
TLcdOpenFlightFileDecoder() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(ILcdStatusListener aStatusListener)
Adds a status listener to be notified of decoding progress.
|
TLcdOpenFlightHeaderNode |
decode(String aSourceName)
Decodes the given .FLT file and returns a fully defined scene graph,
accessible through its top-level TLcdOpenFlightHeaderNode.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the input stream factory that is used.
|
boolean |
removeStatusListener(ILcdStatusListener aStatusListener)
Removes a previously registered status listener
|
void |
setInputStreamFactory(ILcdInputStreamFactory aILcdInputStreamFactory)
Sets the input stream factory to be used.
|
public void setInputStreamFactory(ILcdInputStreamFactory aILcdInputStreamFactory)
ILcdInputStreamFactoryCapable
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aILcdInputStreamFactory
- the input stream factory to be used.public ILcdInputStreamFactory getInputStreamFactory()
ILcdInputStreamFactoryCapable
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
public void addStatusListener(ILcdStatusListener aStatusListener)
aStatusListener
- an ILcdStatusListenerpublic boolean removeStatusListener(ILcdStatusListener aStatusListener)
aStatusListener
- an ILcdStatusListenerpublic TLcdOpenFlightHeaderNode decode(String aSourceName) throws IOException
aSourceName
- the file to decodeIOException