Package org.web3d.x3d.sai.shape
Interface Material
- All Superinterfaces:
X3DAppearanceChildNode,X3DMaterialNode,X3DNode
- All Known Implementing Classes:
SAIMaterial,SAIMaterial
Defines the requirements of an X3D Material node
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the ambientIntensity float value.voidgetDiffuseColor(float[] val) Return the diffuseColor value in the argument float[]voidgetEmissiveColor(float[] val) Return the emissiveColor value in the argument float[]floatReturn the shininess float value.voidgetSpecularColor(float[] val) Return the specularColor value in the argument float[]floatReturn the transparency float value.voidsetAmbientIntensity(float val) Set the ambientIntensity field.voidsetDiffuseColor(float[] val) Set the diffuseColor field.voidsetEmissiveColor(float[] val) Set the emissiveColor field.voidsetShininess(float val) Set the shininess field.voidsetSpecularColor(float[] val) Set the specularColor field.voidsetTransparency(float val) Set the transparency field.Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Method Details
-
getAmbientIntensity
float getAmbientIntensity()Return the ambientIntensity float value.- Returns:
- The ambientIntensity float value.
-
setAmbientIntensity
void setAmbientIntensity(float val) Set the ambientIntensity field.- Parameters:
val- The float to set.
-
getDiffuseColor
void getDiffuseColor(float[] val) Return the diffuseColor value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setDiffuseColor
void setDiffuseColor(float[] val) Set the diffuseColor field.- Parameters:
val- The float[] to set.
-
getEmissiveColor
void getEmissiveColor(float[] val) Return the emissiveColor value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setEmissiveColor
void setEmissiveColor(float[] val) Set the emissiveColor field.- Parameters:
val- The float[] to set.
-
getShininess
float getShininess()Return the shininess float value.- Returns:
- The shininess float value.
-
setShininess
void setShininess(float val) Set the shininess field.- Parameters:
val- The float to set.
-
getSpecularColor
void getSpecularColor(float[] val) Return the specularColor value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setSpecularColor
void setSpecularColor(float[] val) Set the specularColor field.- Parameters:
val- The float[] to set.
-
getTransparency
float getTransparency()Return the transparency float value.- Returns:
- The transparency float value.
-
setTransparency
void setTransparency(float val) Set the transparency field.- Parameters:
val- The float to set.
-