public interface ILcd3DMeshStyle
getTextureSourceName()
returns the name of the texture image,
getTextureData(ILcdInputStreamFactory)
returns an input stream for the
texture image. The latter by default tries to interpret the texture source name
as a file path, but can for instance be overridden for file formats that embed
textures in the same file as the 3D mesh data itself.
See TLcd3DMeshStyle
for a default implementation.Modifier and Type | Method and Description |
---|---|
Color |
getAmbientColor()
Returns the ambient color of this style.
|
Color |
getDiffuseColor()
Returns the diffuse color of this style.
|
Color |
getEmissiveColor()
Returns the emissive color of this style.
|
default Object |
getGLTextureData()
Return the GL texture data as an object containing all texture information.
|
double |
getShininess()
Returns the specular exponent of this style.
|
Color |
getSpecularColor()
Returns the specular color of this style.
|
default InputStream |
getTextureData(ILcdInputStreamFactory aFactory)
Creates an input stream from which the texture map for this style can be decoded.
|
String |
getTextureSourceName()
Returns the path to a texture map for this style, or null if no texture is present.
|
boolean |
isTransparent()
Returns true if this style is transparent.
|
Color getAmbientColor()
Color.BLACK
.Color getDiffuseColor()
Color.WHITE
.Color getSpecularColor()
Color.BLACK
.Color getEmissiveColor()
Color.BLACK
.boolean isTransparent()
double getShininess()
String getTextureSourceName()
default InputStream getTextureData(ILcdInputStreamFactory aFactory) throws IOException
getTextureSourceName()
as
input. It returns null if no texture is associated with this style. Otherwise, it throws an
exception if the texture file cannot be opened.aFactory
- the input stream factory to be used when opening the texture fileIOException
- if the texture file cannot be openeddefault Object getGLTextureData()