Package org.xj3d.sai.external.node.shape
Class SAITwoSidedMaterial
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.shape.SAITwoSidedMaterial
- All Implemented Interfaces:
TwoSidedMaterial
,X3DAppearanceChildNode
,X3DMaterialNode
,X3DNode
A concrete implementation of the TwoSidedMaterial node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAITwoSidedMaterial
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the ambientIntensity float value.float
Return the backAmbientIntensity float value.void
getBackDiffuseColor
(float[] val) Return the backDiffuseColor value in the argument float[]void
getBackEmissiveColor
(float[] val) Return the backEmissiveColor value in the argument float[]float
Return the backShininess float value.void
getBackSpecularColor
(float[] val) Return the backSpecularColor value in the argument float[]float
Return the backTransparency 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[]boolean
Return the separateBackColor boolean value.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
setBackAmbientIntensity
(float val) Set the backAmbientIntensity field.void
setBackDiffuseColor
(float[] val) Set the backDiffuseColor field.void
setBackEmissiveColor
(float[] val) Set the backEmissiveColor field.void
setBackShininess
(float val) Set the backShininess field.void
setBackSpecularColor
(float[] val) Set the backSpecularColor field.void
setBackTransparency
(float val) Set the backTransparency field.void
setDiffuseColor
(float[] val) Set the diffuseColor field.void
setEmissiveColor
(float[] val) Set the emissiveColor field.void
setSeparateBackColor
(boolean val) Set the separateBackColor 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.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAITwoSidedMaterial
public SAITwoSidedMaterial(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
node
-nodeFactory
-fieldFactory
-queue
-
-
-
Method Details
-
getAmbientIntensity
public float getAmbientIntensity()Return the ambientIntensity float value.- Specified by:
getAmbientIntensity
in interfaceTwoSidedMaterial
- Returns:
- The ambientIntensity float value.
-
setAmbientIntensity
public void setAmbientIntensity(float val) Set the ambientIntensity field.- Specified by:
setAmbientIntensity
in interfaceTwoSidedMaterial
- Parameters:
val
- The float to set.
-
getBackAmbientIntensity
public float getBackAmbientIntensity()Return the backAmbientIntensity float value.- Specified by:
getBackAmbientIntensity
in interfaceTwoSidedMaterial
- Returns:
- The backAmbientIntensity float value.
-
setBackAmbientIntensity
public void setBackAmbientIntensity(float val) Set the backAmbientIntensity field.- Specified by:
setBackAmbientIntensity
in interfaceTwoSidedMaterial
- Parameters:
val
- The float to set.
-
getDiffuseColor
public void getDiffuseColor(float[] val) Return the diffuseColor value in the argument float[]- Specified by:
getDiffuseColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to initialize.
-
setDiffuseColor
public void setDiffuseColor(float[] val) Set the diffuseColor field.- Specified by:
setDiffuseColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to set.
-
getBackDiffuseColor
public void getBackDiffuseColor(float[] val) Return the backDiffuseColor value in the argument float[]- Specified by:
getBackDiffuseColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to initialize.
-
setBackDiffuseColor
public void setBackDiffuseColor(float[] val) Set the backDiffuseColor field.- Specified by:
setBackDiffuseColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to set.
-
getEmissiveColor
public void getEmissiveColor(float[] val) Return the emissiveColor value in the argument float[]- Specified by:
getEmissiveColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to initialize.
-
setEmissiveColor
public void setEmissiveColor(float[] val) Set the emissiveColor field.- Specified by:
setEmissiveColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to set.
-
getBackEmissiveColor
public void getBackEmissiveColor(float[] val) Return the backEmissiveColor value in the argument float[]- Specified by:
getBackEmissiveColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to initialize.
-
setBackEmissiveColor
public void setBackEmissiveColor(float[] val) Set the backEmissiveColor field.- Specified by:
setBackEmissiveColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to set.
-
getShininess
public float getShininess()Return the shininess float value.- Specified by:
getShininess
in interfaceTwoSidedMaterial
- Returns:
- The shininess float value.
-
setShininess
public void setShininess(float val) Set the shininess field.- Specified by:
setShininess
in interfaceTwoSidedMaterial
- Parameters:
val
- The float to set.
-
getBackShininess
public float getBackShininess()Return the backShininess float value.- Specified by:
getBackShininess
in interfaceTwoSidedMaterial
- Returns:
- The backShininess float value.
-
setBackShininess
public void setBackShininess(float val) Set the backShininess field.- Specified by:
setBackShininess
in interfaceTwoSidedMaterial
- Parameters:
val
- The float to set.
-
getSpecularColor
public void getSpecularColor(float[] val) Return the specularColor value in the argument float[]- Specified by:
getSpecularColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to initialize.
-
setSpecularColor
public void setSpecularColor(float[] val) Set the specularColor field.- Specified by:
setSpecularColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to set.
-
getBackSpecularColor
public void getBackSpecularColor(float[] val) Return the backSpecularColor value in the argument float[]- Specified by:
getBackSpecularColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to initialize.
-
setBackSpecularColor
public void setBackSpecularColor(float[] val) Set the backSpecularColor field.- Specified by:
setBackSpecularColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The float[] to set.
-
getTransparency
public float getTransparency()Return the transparency float value.- Specified by:
getTransparency
in interfaceTwoSidedMaterial
- Returns:
- The transparency float value.
-
setTransparency
public void setTransparency(float val) Set the transparency field.- Specified by:
setTransparency
in interfaceTwoSidedMaterial
- Parameters:
val
- The float to set.
-
getBackTransparency
public float getBackTransparency()Return the backTransparency float value.- Specified by:
getBackTransparency
in interfaceTwoSidedMaterial
- Returns:
- The backTransparency float value.
-
setBackTransparency
public void setBackTransparency(float val) Set the backTransparency field.- Specified by:
setBackTransparency
in interfaceTwoSidedMaterial
- Parameters:
val
- The float to set.
-
getSeparateBackColor
public boolean getSeparateBackColor()Return the separateBackColor boolean value.- Specified by:
getSeparateBackColor
in interfaceTwoSidedMaterial
- Returns:
- The separateBackColor boolean value.
-
setSeparateBackColor
public void setSeparateBackColor(boolean val) Set the separateBackColor field.- Specified by:
setSeparateBackColor
in interfaceTwoSidedMaterial
- Parameters:
val
- The boolean to set.
-