public class TLcdOBJMeshDecoder extends Object implements ILcdInputStreamFactoryCapable
TLsp3DIconStyle
containing the OBJ 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.obj" ).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 |
---|
TLcdOBJMeshDecoder() |
Modifier and Type | Method and Description |
---|---|
ILcd3DMesh |
decodeMesh(String aSourceName)
Decodes a .OBJ file from the specified source.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the input stream factory that is used.
|
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 ILcd3DMesh decodeMesh(String aSourceName) throws IOException
aSourceName
- the file to be decodedIOException
- if the file cannot be decoded