|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Node specifies visual surface material properties for associated geometry.
Defines methods needed for standard VRML lighting model equations
| Method Summary | |
float |
getAmbientIntensity()
Accessor method to get current value of field ambientIntensity. |
float[] |
getDiffuseColor()
Accessor method to get current value of field diffuseColor. |
float[] |
getEmissiveColor()
Accessor method to get current value of field emissiveColor. |
float |
getShininess()
Accessor method to get current value of field shininess. |
float[] |
getSpecularColor()
Accessor method to get current value of field specularColor. |
float |
getTransparency()
Accessor method to get current value of field transparency. |
void |
setAmbientIntensity(float newAmbientIntensity)
Accessor method to set a new value for field attribute ambientIntensity. |
void |
setDiffuseColor(float[] newDiffuseColor)
Accessor method to set a new value for field attribute diffuseColor. |
void |
setEmissiveColor(float[] newEmissiveColor)
Accessor method to set a new value for field attribute emissiveColor. |
void |
setIgnoreDiffuse(boolean ignore)
Ignore the diffuseColor color term and use 1,1,1 for the diffuse color. |
void |
setShininess(float newShininess)
Accessor method to set a new value for field attribute shininess. |
void |
setSpecularColor(float[] newSpecularColor)
Accessor method to set a new value for field attribute specularColor. |
void |
setTransparency(float newTransparency)
Accessor method to set a new value for field attribute transparency. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
allEventsComplete |
| Method Detail |
public void setAmbientIntensity(float newAmbientIntensity)
throws InvalidFieldValueException
newAmbientIntensity - The new intensity value
InvalidFieldValueExceptionpublic float getAmbientIntensity()
0.2
public void setDiffuseColor(float[] newDiffuseColor)
throws InvalidFieldValueException
newDiffuseColor - The new value of diffuseColor
InvalidFieldValueExceptionpublic float[] getDiffuseColor()
0.8 0.8 0.8.
public void setEmissiveColor(float[] newEmissiveColor)
throws InvalidFieldValueException
newEmissiveColor - The new value of EmissiveColor
InvalidFieldValueExceptionpublic float[] getEmissiveColor()
0 0 0.
public void setShininess(float newShininess)
throws InvalidFieldValueException
newShininess - The new value of Shininess
InvalidFieldValueExceptionpublic float getShininess()
0.2.
public void setSpecularColor(float[] newSpecularColor)
throws InvalidFieldValueException
newSpecularColor - The new value of SpecularColor
InvalidFieldValueExceptionpublic float[] getSpecularColor()
0 0 0.
public void setTransparency(float newTransparency)
throws InvalidFieldValueException
newTransparency - The new value of Transparency
InvalidFieldValueExceptionpublic float getTransparency()
0
public void setIgnoreDiffuse(boolean ignore)
ignore - True to ignore the diffuse term
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||