public class Material extends X3DMaterialNode
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<extension base="{}X3DMaterialNode">
<attribute name="ambientIntensity" default="0.2">
<simpleType>
<restriction base="{}SFFloat">
<minInclusive value="0"/>
<maxInclusive value="1"/>
</restriction>
</simpleType>
</attribute>
<attribute name="diffuseColor" type="{}SFColor" default="0.8 0.8 0.8" />
<attribute name="emissiveColor" type="{}SFColor" default="0 0 0" />
<attribute name="shininess" default="0.2">
<simpleType>
<restriction base="{}SFFloat">
<minInclusive value="0"/>
<maxInclusive value="1"/>
</restriction>
</simpleType>
</attribute>
<attribute name="specularColor" type="{}SFColor" default="0 0 0" />
<attribute name="transparency" default="0">
<simpleType>
<restriction base="{}SFFloat">
<minInclusive value="0"/>
<maxInclusive value="1"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected SFFloat |
ambientIntensity |
protected SFColor |
diffuseColor |
protected SFColor |
emissiveColor |
protected SFFloat |
shininess |
protected SFColor |
specularColor |
protected SFFloat |
transparency |
containerField| Constructor and Description |
|---|
Material() |
| Modifier and Type | Method and Description |
|---|---|
SFFloat |
getAmbientIntensity()
Gets the value of the ambientIntensity property.
|
SFColor |
getDiffuseColor()
Gets the value of the diffuseColor property.
|
SFColor |
getEmissiveColor()
Gets the value of the emissiveColor property.
|
SFFloat |
getShininess()
Gets the value of the shininess property.
|
SFColor |
getSpecularColor()
Gets the value of the specularColor property.
|
SFFloat |
getTransparency()
Gets the value of the transparency property.
|
void |
setAmbientIntensity(SFFloat value)
Sets the value of the ambientIntensity property.
|
void |
setDiffuseColor(SFColor value)
Sets the value of the diffuseColor property.
|
void |
setEmissiveColor(SFColor value)
Sets the value of the emissiveColor property.
|
void |
setShininess(SFFloat value)
Sets the value of the shininess property.
|
void |
setSpecularColor(SFColor value)
Sets the value of the specularColor property.
|
void |
setTransparency(SFFloat value)
Sets the value of the transparency property.
|
getContainerField, setContainerFieldgetClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSEprotected SFFloat ambientIntensity
protected SFColor diffuseColor
protected SFColor emissiveColor
protected SFFloat shininess
protected SFColor specularColor
protected SFFloat transparency
public SFFloat getAmbientIntensity()
SFFloatpublic void setAmbientIntensity(SFFloat value)
value - allowed object is
SFFloatpublic SFColor getDiffuseColor()
SFColorpublic void setDiffuseColor(SFColor value)
value - allowed object is
SFColorpublic SFColor getEmissiveColor()
SFColorpublic void setEmissiveColor(SFColor value)
value - allowed object is
SFColorpublic SFFloat getShininess()
SFFloatpublic void setShininess(SFFloat value)
value - allowed object is
SFFloatpublic SFColor getSpecularColor()
SFColorpublic void setSpecularColor(SFColor value)
value - allowed object is
SFColorpublic SFFloat getTransparency()
SFFloat