Class TLcdOpenFlight3DMeshStyle
java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlight3DMeshStyle
- All Implemented Interfaces:
ILcd3DMeshStyle
An implementation of ILcd3DMeshStyle used in conjunction with OpenFlight
scenes. This class bundles information obtained from the material and
texture palettes, as well as from individual face nodes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the ambient color of this style.Returns the diffuse color of this style.Returns the emissive color of this style.double
Returns the opacity of this style.double
Returns the specular exponent of this style.Returns the specular color of this style.Returns the path to a texture map for this style, or null if no texture is present.int
hashCode()
boolean
Returns true if backfacing polygons may be culled.boolean
isLit()
Returns true if primitives using this style should be lit.boolean
Returns true if this style is transparent.boolean
Returns true if this style should derive color information from the vertices in an ILcd3DMesh.void
setAmbientColor
(Color aAmbientColor) Sets the ambient color of this style.void
setCullBackFaces
(boolean aCullBackFaces) Specifies whether backfacing polygons may be culled.void
setDiffuseColor
(Color aDiffuseColor) Sets the diffuse color of this style.void
setEmissiveColor
(Color aEmissiveColor) Sets the emissive color of this style.void
setLit
(boolean aLit) Specifies whether primitives using this style should be lit.void
setOpacity
(double aOpacity) Sets the opacity of this style.void
setShininess
(double aShininess) Sets the specular exponent of this style.void
setSpecularColor
(Color aSpecularColor) Sets the specular color of this style.void
setTextureSourceName
(String aTextureSourceName) Sets the name of the texture image to be used with this style.void
setUseVertexColor
(boolean aUseVertexColor) Specifies whether vertex colors should be used instead of the colors defined in this mesh style.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.format.object3d.ILcd3DMeshStyle
getGLTextureData, getTextureData
-
Constructor Details
-
TLcdOpenFlight3DMeshStyle
public TLcdOpenFlight3DMeshStyle()
-
-
Method Details
-
isCullBackFaces
public boolean isCullBackFaces()Returns true if backfacing polygons may be culled.- Returns:
- true if backfacing polygons may be culled
-
setCullBackFaces
public void setCullBackFaces(boolean aCullBackFaces) Specifies whether backfacing polygons may be culled.- Parameters:
aCullBackFaces
- true if backfaces may be culled- See Also:
-
isLit
public boolean isLit()Returns true if primitives using this style should be lit.- Returns:
- true if primitives using this style should be lit
-
setLit
public void setLit(boolean aLit) Specifies whether primitives using this style should be lit.- Parameters:
aLit
- true if primitives using this style should be lit- See Also:
-
getAmbientColor
Description copied from interface:ILcd3DMeshStyle
Returns the ambient color of this style. If the ambient color is unknown, returnsColor.BLACK
.- Specified by:
getAmbientColor
in interfaceILcd3DMeshStyle
- Returns:
- the ambient color of this style
-
setAmbientColor
Sets the ambient color of this style.- Parameters:
aAmbientColor
- a Color- See Also:
-
getDiffuseColor
Description copied from interface:ILcd3DMeshStyle
Returns the diffuse color of this style. If the diffuse color is unknown, returnsColor.WHITE
.- Specified by:
getDiffuseColor
in interfaceILcd3DMeshStyle
- Returns:
- the diffuse color of this style
-
setDiffuseColor
Sets the diffuse color of this style.- Parameters:
aDiffuseColor
- a Color- See Also:
-
getSpecularColor
Description copied from interface:ILcd3DMeshStyle
Returns the specular color of this style. If the specular color is unknown, returnsColor.BLACK
.- Specified by:
getSpecularColor
in interfaceILcd3DMeshStyle
- Returns:
- the specular color of this style
-
setSpecularColor
Sets the specular color of this style.- Parameters:
aSpecularColor
- a Color- See Also:
-
getEmissiveColor
Description copied from interface:ILcd3DMeshStyle
Returns the emissive color of this style. If the emissive color is unknown, returnsColor.BLACK
.- Specified by:
getEmissiveColor
in interfaceILcd3DMeshStyle
- Returns:
- the emissive color of this style
-
setEmissiveColor
Sets the emissive color of this style.- Parameters:
aEmissiveColor
- a Color- See Also:
-
getOpacity
public double getOpacity()Returns the opacity of this style. Values are in the range of 0 to 1, inclusive, with 0 being fully transparent and 1 being fully opaque.- Returns:
- the opacity of this style
-
setOpacity
public void setOpacity(double aOpacity) Sets the opacity of this style.- Parameters:
aOpacity
- the new opacity value- See Also:
-
getShininess
public double getShininess()Description copied from interface:ILcd3DMeshStyle
Returns the specular exponent of this style. The value must lie between 0 and 128, inclusive. If the specular exponent is unknown, returns zero.- Specified by:
getShininess
in interfaceILcd3DMeshStyle
- Returns:
- the specular exponent of this style
-
setShininess
public void setShininess(double aShininess) Sets the specular exponent of this style. The value must lie between 0 and 128, inclusive.- Parameters:
aShininess
- the specular exponent- See Also:
-
getTextureSourceName
Description copied from interface:ILcd3DMeshStyle
Returns the path to a texture map for this style, or null if no texture is present.- Specified by:
getTextureSourceName
in interfaceILcd3DMeshStyle
- Returns:
- the path to a texture map for this style
-
setTextureSourceName
Sets the name of the texture image to be used with this style.- Parameters:
aTextureSourceName
- the name of a texture image- See Also:
-
isUseVertexColor
public boolean isUseVertexColor()Returns true if this style should derive color information from the vertices in an ILcd3DMesh. Otherwise, colors are derived from this mesh style instead.- Returns:
- true if this style should derive color information from the vertices in an ILcd3DMesh
-
setUseVertexColor
public void setUseVertexColor(boolean aUseVertexColor) Specifies whether vertex colors should be used instead of the colors defined in this mesh style.- Parameters:
aUseVertexColor
- true if vertex colors should be used- See Also:
-
isTransparent
public boolean isTransparent()Description copied from interface:ILcd3DMeshStyle
Returns true if this style is transparent.- Specified by:
isTransparent
in interfaceILcd3DMeshStyle
- Returns:
- true if this style is transparent
-
equals
-
hashCode
public int hashCode()
-