public interface Material extends X3DMaterialNode
| Modifier and Type | Method and Description |
|---|---|
float |
getAmbientIntensity()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named ambientIntensity.
|
float[] |
getDiffuseColor()
Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named diffuseColor.
|
float[] |
getEmissiveColor()
Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named emissiveColor.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
float |
getShininess()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named shininess.
|
float[] |
getSpecularColor()
Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named specularColor.
|
float |
getTransparency()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named transparency.
|
Material |
setAmbientIntensity(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named ambientIntensity.
|
Material |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
Material |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
Material |
setDiffuseColor(float[] newValue)
Assign 3-tuple float array using RGB values [0..1] using RGB values [0..1] to inputOutput SFColor field named diffuseColor.
|
Material |
setEmissiveColor(float[] newValue)
Assign 3-tuple float array using RGB values [0..1] using RGB values [0..1] to inputOutput SFColor field named emissiveColor.
|
Material |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
Material |
setShininess(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named shininess.
|
Material |
setSpecularColor(float[] newValue)
Assign 3-tuple float array using RGB values [0..1] using RGB values [0..1] to inputOutput SFColor field named specularColor.
|
Material |
setTransparency(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named transparency.
|
Material |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
float getAmbientIntensity()
Material setAmbientIntensity(float newValue)
newValue - is new value for the ambientIntensity field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getDiffuseColor()
Material setDiffuseColor(float[] newValue)
newValue - is new value for the diffuseColor field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getEmissiveColor()
Material setEmissiveColor(float[] newValue)
newValue - is new value for the emissiveColor field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DMetadataObject getMetadata()
getMetadata in interface X3DAppearanceChildNodegetMetadata in interface X3DMaterialNodegetMetadata in interface X3DNodeMaterial setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DAppearanceChildNodesetMetadata in interface X3DMaterialNodesetMetadata in interface X3DNodenewValue - is new value for the metadata field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getShininess()
Material setShininess(float newValue)
newValue - is new value for the shininess field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getSpecularColor()
Material setSpecularColor(float[] newValue)
newValue - is new value for the specularColor field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getTransparency()
Material setTransparency(float newValue)
newValue - is new value for the transparency field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Material setDEF(java.lang.String newValue)
setDEF in interface X3DAppearanceChildNodesetDEF in interface X3DMaterialNodesetDEF in interface X3DNodenewValue - is new value for the DEF field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Material setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.setUSE in interface X3DAppearanceChildNodesetUSE in interface X3DMaterialNodesetUSE in interface X3DNodenewValue - is new value for the USE field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Material setCssClass(java.lang.String newValue)
setCssClass in interface X3DAppearanceChildNodesetCssClass in interface X3DMaterialNodesetCssClass in interface X3DNodenewValue - is new value for the class field.Material - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.