|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLMaterialNodeType
Node specifies colour properties for associated geometry.
Defines methods needed for standard VRML lighting model equations
| Method Summary | |
|---|---|
void |
addMaterialColorListener(MaterialColorListener l)
Add a listener instance for the material color change notifications. |
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()
Get current value of the shinines field. |
float[] |
getSpecularColor()
Get current value of the specularColor field. |
float |
getTransparency()
Accessor method to get current value of field transparency. |
void |
removeMaterialColorListener(MaterialColorListener l)
Remove a listener instance from this node. |
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)
Set a new value for the transparency. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
|---|
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, 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 |
|---|
void setAmbientIntensity(float newAmbientIntensity)
throws InvalidFieldValueException
newAmbientIntensity - The new intensity value
InvalidFieldValueExceptionfloat getAmbientIntensity()
0.2
void setDiffuseColor(float[] newDiffuseColor)
throws InvalidFieldValueException
newDiffuseColor - The new value of diffuseColor
InvalidFieldValueExceptionfloat[] getDiffuseColor()
0.8 0.8 0.8.
void setEmissiveColor(float[] newEmissiveColor)
throws InvalidFieldValueException
newEmissiveColor - The new value of EmissiveColor
InvalidFieldValueExceptionfloat[] getEmissiveColor()
0 0 0.
void setShininess(float newShininess)
throws InvalidFieldValueException
newShininess - The new value of Shininess
InvalidFieldValueExceptionfloat getShininess()
0.2.
void setSpecularColor(float[] newSpecularColor)
throws InvalidFieldValueException
newSpecularColor - The new value of SpecularColor
InvalidFieldValueExceptionfloat[] getSpecularColor()
0 0 0.
void setTransparency(float newTransparency)
throws InvalidFieldValueException
newTransparency - The new value of Transparency
InvalidFieldValueExceptionfloat getTransparency()
0
void setIgnoreDiffuse(boolean ignore)
ignore - True to ignore the diffuse termvoid addMaterialColorListener(MaterialColorListener l)
l - The new instance to addvoid removeMaterialColorListener(MaterialColorListener l)
l - The new instance to remove
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||