Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Material Class Reference

Class of the Shape component defining a Material (X3D documentation). More...

Inherits X3DMaterialNode.

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

Class of the Shape component defining a Material (X3D documentation).


Constructor & Destructor Documentation

Material  ) 
 

Constructor.

Material SFFloat  ambientIntensity,
SFColor  diffuseColor,
SFColor  emissiveColor,
SFFloat  shininess,
SFColor  specularColor,
SFFloat  transparency
 

Constructs a Material from its attributes.

virtual ~Material  )  [virtual]
 

Destructor.

Material const Material &  M  )  [protected]
 

Copy constructor.


Member Function Documentation

virtual SFNode clone  )  const [virtual]
 

Clones the node.

Reimplemented from X3DMaterialNode.

SFFloat getAmbientIntensity  )  const [inline]
 

Gets the AmbientIntensity attribute.

SFColor getDiffuseColor  )  const [inline]
 

Gets the DiffuseColor attribute.

SFColor getEmissiveColor  )  const [inline]
 

Gets the EmissiveColor attribute.

SFFloat getShininess  )  const [inline]
 

Gets the Shininess attribute.

SFColor getSpecularColor  )  const [inline]
 

Gets the SpecularColor attribute.

SFFloat getTransparency  )  const [inline]
 

Gets the Transparency attribute.

virtual void load const X3DFileElement element  )  [virtual]
 

Loads the attributes from a X3DFileElement *.

Reimplemented from X3DNode.

void setAmbientIntensity SFFloat  ambientIntensity  ) 
 

Sets the AmbientIntensity attribute.

void setDiffuseColor SFColor  diffuseColor  ) 
 

Sets the DiffuseColo attribute.

void setEmissiveColor SFColor  emissiveColor  ) 
 

Sets the EmissiveColo attribute.

void setShininess SFFloat  shininess  ) 
 

Sets the Shininess attribute.

void setSpecularColor SFColor  specularColor  ) 
 

Sets the SpecularColor attribute.

void setTransparency SFFloat  transparency  ) 
 

Sets the Transparenc attribute.

virtual SFString write  )  const [virtual]
 

Writes the attributes of the node.

Reimplemented from X3DNode.


Generated on Mon May 26 16:04:22 2003 for X3DToolKit by doxygen1.3