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

X3DTK::GL::Material Class Reference

Class providing a implementation of the X3DGLNode corresponding to the X3DNode Material. More...

Inheritance diagram for X3DTK::GL::Material:

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

Public Member Functions

Protected Member Functions


Detailed Description

Class providing a implementation of the X3DGLNode corresponding to the X3DNode Material.


Constructor & Destructor Documentation

X3DTK::GL::Material::Material  ) 
 

Constructor.

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

Destructor.

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

Copy constructor.


Member Function Documentation

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

Clones the node.

Reimplemented from X3DTK::GL::X3DMaterialNode.

const MFFloat& X3DTK::GL::Material::getAmbientColor  )  const [inline]
 

Gets the ambient color attribute.

const MFFloat& X3DTK::GL::Material::getDiffuseColor  )  const [inline]
 

Gets the diffuse color attribute.

const MFFloat& X3DTK::GL::Material::getEmissiveColor  )  const [inline]
 

Gets the emissisve color attribute.

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

Gets the shininess attribute.

const MFFloat& X3DTK::GL::Material::getSpecularColor  )  const [inline]
 

Gets the specular color attribute.

virtual void X3DTK::GL::Material::render  )  const [virtual]
 

Renders the node in an openGL context.

Reimplemented from X3DTK::GL::X3DNode.

void X3DTK::GL::Material::setAmbientColor const MFFloat &  ambientColor  ) 
 

Sets the ambient color attribute.

void X3DTK::GL::Material::setDiffuseColor const MFFloat &  diffuseColor  ) 
 

Sets the diffuse color attribute.

void X3DTK::GL::Material::setEmissiveColor const MFFloat &  emissiveColor  ) 
 

Sets the emissisve color attribute.

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

Sets the shininess attribute.

void X3DTK::GL::Material::setSpecularColor const MFFloat &  specularColor  ) 
 

Sets the specular color attribute.

virtual void X3DTK::GL::Material::update  )  [virtual]
 

Updates the attributes of the node.

Reimplemented from X3DTK::GL::X3DNode.


Generated on Tue Jul 15 16:46:56 2003 for X3DToolKit by doxygen1.3