|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for accessing to a Material.
Material specify the appareance of a Face3D.
IMaterial
,
ITexture
Method Summary | |
boolean |
getAlphaEnabled()
Gets alpha flag. |
int |
getAlphaLevel()
Gets alpha level value. 0=opaque Higher value make the object more transparent. 255=invisible Higher value increment the glosiness. |
int |
getAmbientColor()
Gets ambient color as an 24bit int using the following bitmask RRGGBB. |
ITexture |
getBumpNormalTexture()
Gets Texture to use for bump |
int |
getDiffuseColor()
Gets diffuse color as an 24bit int using the following bitmask RRGGBB. |
ITexture |
getDiffuseTexture()
Gets Texture to use for diffuse color texture. |
ITexture |
getDiffuseTextureDetail()
Gets Texture to use for diffuse light detail texture. |
int |
getDiffuseTextureDetailFactor()
Gets detail texture factor. |
int |
getEmissiveColor()
Gets emissive color as an 24bit int using the following bitmask RRGGBB. |
ITexture |
getEnvTexture()
Gets Texture to use for environment |
IMappingUV |
getMappingUV()
Gets MappingUV to use for diffuse texture color and diffuse light detail texture. |
int |
getSelfIlluminationLevel()
Gets self illumination level in unit . |
int |
getSpecularColor()
Gets specular color as an 24bit int using the following bitmask RRGGBB. |
int |
getSpecularLevel()
Gets specular level in unit : 255 <=> 100% . |
int |
getSpecularPower()
Gets specular power. |
boolean |
isUsingAlpha()
Gets a flag that indicate if this Material use alpha channel. |
void |
setAlphaEnabled(boolean alphaEnabled)
Sets alpha flag. |
void |
setAlphaLevel(int alpha)
Sets alpha level value. 0=opaque Higher value make the object more transparent. 255=invisible Higher value increment the glosiness. |
void |
setAmbientColor(int color)
Sets ambient color as an 24bit int using the following bitmask RRGGBB. |
void |
setBumpNormalTexture(ITexture texture)
Sets Texture to use for bump |
void |
setDiffuseColor(int color)
Sets diffuse color as an 24bit int using the following bitmask RRGGBB. |
void |
setDiffuseTexture(ITexture texture)
Sets Texture to use for diffuse color texture. |
void |
setDiffuseTextureDetail(ITexture texture)
Sets Texture to use for diffuse light detail texture. |
void |
setDiffuseTextureDetailFactor(int diffuseTextureDetailFactor)
Sets detail texture factor. |
void |
setEmissiveColor(int color)
Sets emissive color as an 24bit int using the following bitmask RRGGBB. |
void |
setEnvTexture(ITexture texture)
Sets Texture to use for environment |
void |
setMappingUV(IMappingUV mapping)
Sets MappingUV to use for diffuse texture color and diffuse light detail texture. |
void |
setSelfIlluminationLevel(int level)
Sets self illumination level in unit . |
void |
setSpecularColor(int color)
Sets specualar color as an 24bit int using the following bitmask RRGGBB. |
void |
setSpecularLevel(int level)
Sets specular level in unit : 255 <=> 100% . |
void |
setSpecularPower(int power)
Sets specular power. |
Methods inherited from interface net.dzzd.access.ISceneObject |
build, clearProperties, copy, getBuild, getId, getName, getProperty, getScene, setBuild, setId, setName, setProperty |
Methods inherited from interface net.dzzd.access.IMonitoredSceneObject |
copy |
Method Detail |
public IMappingUV getMappingUV()
public void setMappingUV(IMappingUV mapping)
mapping
- new MappingUV or null to removepublic int getAmbientColor()
public int getDiffuseColor()
public int getEmissiveColor()
public int getSelfIlluminationLevel()
public int getSpecularColor()
public int getSpecularLevel()
public int getSpecularPower()
public int getAlphaLevel()
public void setAmbientColor(int color)
color
- new color.public void setDiffuseColor(int color)
color
- new color.public void setEmissiveColor(int color)
color
- new color.public void setSelfIlluminationLevel(int level)
level
- new level.public void setSpecularColor(int color)
color
- new color.public void setSpecularLevel(int level)
level
- new level.public void setSpecularPower(int power)
power
- new power.public void setAlphaLevel(int alpha)
alpha
- new alpha value.public boolean getAlphaEnabled()
public void setAlphaEnabled(boolean alphaEnabled)
public boolean isUsingAlpha()
public ITexture getDiffuseTexture()
public ITexture getBumpNormalTexture()
public ITexture getEnvTexture()
public ITexture getDiffuseTextureDetail()
public void setDiffuseTexture(ITexture texture)
texture
- interface to access the Texture or null if nonepublic void setBumpNormalTexture(ITexture texture)
texture
- interface to access the Texture or null if nonepublic void setEnvTexture(ITexture texture)
texture
- interface to access the Texture or null if nonepublic void setDiffuseTextureDetail(ITexture texture)
texture
- interface to access the Texture or null if nonepublic void setDiffuseTextureDetailFactor(int diffuseTextureDetailFactor)
diffuseTextureDetailFactor
- new detail factorpublic int getDiffuseTextureDetailFactor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |