Package org.xj3d.sai.internal.node.shape
Class SAIMaterial
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.shape.SAIMaterial
- All Implemented Interfaces:
Material,X3DAppearanceChildNode,X3DMaterialNode,X3DNode
A concrete implementation of the Material node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode -
Constructor Summary
ConstructorsConstructorDescriptionSAIMaterial(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
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 class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIMaterial
public SAIMaterial(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf-
-
-
Method Details
-
getAmbientIntensity
public float getAmbientIntensity()Return the ambientIntensity float value.- Specified by:
getAmbientIntensityin interfaceMaterial- Returns:
- The ambientIntensity float value.
-
setAmbientIntensity
public void setAmbientIntensity(float val) Set the ambientIntensity field.- Specified by:
setAmbientIntensityin interfaceMaterial- Parameters:
val- The float to set.
-
getDiffuseColor
public void getDiffuseColor(float[] val) Return the diffuseColor value in the argument float[]- Specified by:
getDiffuseColorin interfaceMaterial- Parameters:
val- The float[] to initialize.
-
setDiffuseColor
public void setDiffuseColor(float[] val) Set the diffuseColor field.- Specified by:
setDiffuseColorin interfaceMaterial- Parameters:
val- The float[] to set.
-
getEmissiveColor
public void getEmissiveColor(float[] val) Return the emissiveColor value in the argument float[]- Specified by:
getEmissiveColorin interfaceMaterial- Parameters:
val- The float[] to initialize.
-
setEmissiveColor
public void setEmissiveColor(float[] val) Set the emissiveColor field.- Specified by:
setEmissiveColorin interfaceMaterial- Parameters:
val- The float[] to set.
-
getShininess
public float getShininess()Return the shininess float value.- Specified by:
getShininessin interfaceMaterial- Returns:
- The shininess float value.
-
setShininess
public void setShininess(float val) Set the shininess field.- Specified by:
setShininessin interfaceMaterial- Parameters:
val- The float to set.
-
getSpecularColor
public void getSpecularColor(float[] val) Return the specularColor value in the argument float[]- Specified by:
getSpecularColorin interfaceMaterial- Parameters:
val- The float[] to initialize.
-
setSpecularColor
public void setSpecularColor(float[] val) Set the specularColor field.- Specified by:
setSpecularColorin interfaceMaterial- Parameters:
val- The float[] to set.
-
getTransparency
public float getTransparency()Return the transparency float value.- Specified by:
getTransparencyin interfaceMaterial- Returns:
- The transparency float value.
-
setTransparency
public void setTransparency(float val) Set the transparency field.- Specified by:
setTransparencyin interfaceMaterial- Parameters:
val- The float to set.
-