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 Methods

Protected Methods


Detailed Description

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


Constructor & Destructor Documentation

X3DTK::X3D::Material::Material  
 

Constructor.

X3DTK::X3D::Material::Material const SFFloat &    ambientIntensity,
const SFColor &    diffuseColor,
const SFColor &    emissiveColor,
const SFFloat &    shininess,
const SFColor &    specularColor,
const 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 SFAbstractNode X3DTK::X3D::Material::clone   [virtual]
 

Clones the node.

Reimplemented from X3DTK::X3DAbstractNode.

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

Gets the AmbientIntensity attribute.

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

Gets the DiffuseColor attribute.

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

Gets the EmissiveColor attribute.

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

Gets the Shininess attribute.

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

Gets the SpecularColor attribute.

const 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 const 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 const SFFloat &    shininess
 

Sets the Shininess attribute.

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

Sets the SpecularColor attribute.

void X3DTK::X3D::Material::setTransparency const SFFloat &    transparency
 

Sets the Transparenc attribute.

virtual SFString& X3DTK::X3D::Material::write SFString   output const [virtual]
 

Writes the attributes of the node.

Reimplemented from X3DTK::X3D::X3DNode.


Generated on Thu Dec 4 13:26:02 2003 for X3DToolKit by doxygen1.2.18