public class TLcd3DMeshStyle extends Object implements ILcd3DMeshStyle
Constructor and Description |
---|
TLcd3DMeshStyle()
Constructs a new mesh style with sensible default values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
double |
getShininess()
Returns the specular exponent of this style.
|
Color |
getSpecularColor()
Returns the specular color of this style.
|
String |
getTextureSourceName()
Returns the path to a texture map for this style, or null if no texture is present.
|
int |
hashCode() |
boolean |
isDoubleSided()
return true if the style is double sided.
|
boolean |
isTransparent()
Returns true if this style is transparent.
|
void |
setAmbientColor(Color aAmbientColor)
Sets the ambient color of this style.
|
void |
setDiffuseColor(Color aDiffuseColor)
Sets the diffuse color of this style.
|
void |
setDoubleSided(boolean aDoubleSided)
Specifies whether or not the style is double sided.
|
void |
setEmissiveColor(Color aEmissiveColor)
Sets the emissive color 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 |
setTransparent(boolean aTransparent)
Specifies whether or not this style requires transparency.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getGLTextureData, getTextureData
public TLcd3DMeshStyle()
public Color getAmbientColor()
ILcd3DMeshStyle
Color.BLACK
.getAmbientColor
in interface ILcd3DMeshStyle
public void setAmbientColor(Color aAmbientColor)
aAmbientColor
- a ColorgetAmbientColor()
public Color getDiffuseColor()
ILcd3DMeshStyle
Color.WHITE
.getDiffuseColor
in interface ILcd3DMeshStyle
public void setDiffuseColor(Color aDiffuseColor)
aDiffuseColor
- a ColorgetDiffuseColor()
public Color getSpecularColor()
ILcd3DMeshStyle
Color.BLACK
.getSpecularColor
in interface ILcd3DMeshStyle
public void setSpecularColor(Color aSpecularColor)
aSpecularColor
- a ColorgetSpecularColor()
public Color getEmissiveColor()
ILcd3DMeshStyle
Color.BLACK
.getEmissiveColor
in interface ILcd3DMeshStyle
public void setEmissiveColor(Color aEmissiveColor)
aEmissiveColor
- a ColorgetEmissiveColor()
public double getShininess()
ILcd3DMeshStyle
getShininess
in interface ILcd3DMeshStyle
public void setShininess(double aShininess)
aShininess
- the specular exponentgetShininess()
public boolean isTransparent()
ILcd3DMeshStyle
isTransparent
in interface ILcd3DMeshStyle
public void setTransparent(boolean aTransparent)
aTransparent
- true if this style is transparentisTransparent()
public String getTextureSourceName()
ILcd3DMeshStyle
getTextureSourceName
in interface ILcd3DMeshStyle
public void setTextureSourceName(String aTextureSourceName)
aTextureSourceName
- the name of a texture imagegetTextureSourceName()
public boolean isDoubleSided()
ILcdStyled3DMesh
.public void setDoubleSided(boolean aDoubleSided)
aDoubleSided
- true if the style is double sided.isDoubleSided()