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 TypeMethodDescriptionfloat
Return the ambientIntensity float value.void
getDiffuseColor
(float[] val) Return the diffuseColor value in the argument float[]void
getEmissiveColor
(float[] val) Return the emissiveColor value in the argument float[]float
Return the shininess float value.void
getSpecularColor
(float[] val) Return the specularColor value in the argument float[]float
Return the transparency float value.void
setAmbientIntensity
(float val) Set the ambientIntensity field.void
setDiffuseColor
(float[] val) Set the diffuseColor field.void
setEmissiveColor
(float[] val) Set the emissiveColor field.void
setShininess
(float val) Set the shininess field.void
setSpecularColor
(float[] val) Set the specularColor field.void
setTransparency
(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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getAmbientIntensity
in interfaceMaterial
- Returns:
- The ambientIntensity float value.
-
setAmbientIntensity
public void setAmbientIntensity(float val) Set the ambientIntensity field.- Specified by:
setAmbientIntensity
in interfaceMaterial
- Parameters:
val
- The float to set.
-
getDiffuseColor
public void getDiffuseColor(float[] val) Return the diffuseColor value in the argument float[]- Specified by:
getDiffuseColor
in interfaceMaterial
- Parameters:
val
- The float[] to initialize.
-
setDiffuseColor
public void setDiffuseColor(float[] val) Set the diffuseColor field.- Specified by:
setDiffuseColor
in interfaceMaterial
- Parameters:
val
- The float[] to set.
-
getEmissiveColor
public void getEmissiveColor(float[] val) Return the emissiveColor value in the argument float[]- Specified by:
getEmissiveColor
in interfaceMaterial
- Parameters:
val
- The float[] to initialize.
-
setEmissiveColor
public void setEmissiveColor(float[] val) Set the emissiveColor field.- Specified by:
setEmissiveColor
in interfaceMaterial
- Parameters:
val
- The float[] to set.
-
getShininess
public float getShininess()Return the shininess float value.- Specified by:
getShininess
in interfaceMaterial
- Returns:
- The shininess float value.
-
setShininess
public void setShininess(float val) Set the shininess field.- Specified by:
setShininess
in interfaceMaterial
- Parameters:
val
- The float to set.
-
getSpecularColor
public void getSpecularColor(float[] val) Return the specularColor value in the argument float[]- Specified by:
getSpecularColor
in interfaceMaterial
- Parameters:
val
- The float[] to initialize.
-
setSpecularColor
public void setSpecularColor(float[] val) Set the specularColor field.- Specified by:
setSpecularColor
in interfaceMaterial
- Parameters:
val
- The float[] to set.
-
getTransparency
public float getTransparency()Return the transparency float value.- Specified by:
getTransparency
in interfaceMaterial
- Returns:
- The transparency float value.
-
setTransparency
public void setTransparency(float val) Set the transparency field.- Specified by:
setTransparency
in interfaceMaterial
- Parameters:
val
- The float to set.
-