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

X3DTK::X3D::Material Class Reference

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

Inheritance diagram for X3DTK::X3D::Material:

X3DTK::X3D::X3DMaterialNode X3DTK::X3D::X3DAppearanceChildNode X3DTK::X3D::X3DNode X3DTK::X3DAbstractNode List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

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


Constructor & Destructor Documentation

X3DTK::X3D::Material::Material  ) 
 

Constructor.

X3DTK::X3D::Material::Material SFFloat  ambientIntensity,
const SFColor &  diffuseColor,
const SFColor &  emissiveColor,
SFFloat  shininess,
const SFColor &  specularColor,
SFFloat  transparency
 

Constructs a Material from its attributes.

virtual X3DTK::X3D::Material::~Material  )  [virtual]
 

Destructor.

X3DTK::X3D::Material::Material const Material &  M  )  [protected]
 

Copy constructor.


Member Function Documentation

virtual SFNode X3DTK::X3D::Material::clone  )  const [virtual]
 

Clones the node.

Reimplemented from X3DTK::X3D::X3DMaterialNode.

SFFloat X3DTK::X3D::Material::getAmbientIntensity  )  const [inline]
 

Gets the AmbientIntensity attribute.

SFColor X3DTK::X3D::Material::getDiffuseColor  )  const [inline]
 

Gets the DiffuseColor attribute.

SFColor X3DTK::X3D::Material::getEmissiveColor  )  const [inline]
 

Gets the EmissiveColor attribute.

SFFloat X3DTK::X3D::Material::getShininess  )  const [inline]
 

Gets the Shininess attribute.

SFColor X3DTK::X3D::Material::getSpecularColor  )  const [inline]
 

Gets the SpecularColor attribute.

SFFloat X3DTK::X3D::Material::getTransparency  )  const [inline]
 

Gets the Transparency attribute.

virtual void X3DTK::X3D::Material::load const X3DFileElement element  )  [virtual]
 

Loads the attributes from a X3DFileElement *.

Reimplemented from X3DTK::X3D::X3DNode.

void X3DTK::X3D::Material::setAmbientIntensity SFFloat  ambientIntensity  ) 
 

Sets the AmbientIntensity attribute.

void X3DTK::X3D::Material::setDiffuseColor const SFColor &  diffuseColor  ) 
 

Sets the DiffuseColo attribute.

void X3DTK::X3D::Material::setEmissiveColor const SFColor &  emissiveColor  ) 
 

Sets the EmissiveColo attribute.

void X3DTK::X3D::Material::setShininess SFFloat  shininess  ) 
 

Sets the Shininess attribute.

void X3DTK::X3D::Material::setSpecularColor const SFColor &  specularColor  ) 
 

Sets the SpecularColor attribute.

void X3DTK::X3D::Material::setTransparency SFFloat  transparency  ) 
 

Sets the Transparenc attribute.

virtual SFString X3DTK::X3D::Material::write  )  const [virtual]
 

Writes the attributes of the node.

Reimplemented from X3DTK::X3D::X3DNode.


Generated on Wed Sep 10 11:25:23 2003 for X3DToolKit by doxygen1.3