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

GLMaterial Class Reference

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

Inherits X3DGLMaterialNode.

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

GLMaterial  ) 
 

Constructor.

virtual ~GLMaterial  )  [virtual]
 

Destructor.

GLMaterial const GLMaterial &  M  )  [protected]
 

Copy constructor.


Member Function Documentation

virtual SFNode clone  )  const [virtual]
 

Clones the node.

Reimplemented from X3DGLMaterialNode.

MFFloat& getAmbientColor  )  const [inline]
 

Gets the ambient color attribute.

MFFloat& getDiffuseColor  )  const [inline]
 

Gets the diffuse color attribute.

MFFloat& getEmissiveColor  )  const [inline]
 

Gets the emissisve color attribute.

SFFloat getShininess  )  const [inline]
 

Gets the shininess attribute.

MFFloat& getSpecularColor  )  const [inline]
 

Gets the specular color attribute.

virtual void render  )  const [virtual]
 

Renders the node in an openGL context.

Reimplemented from X3DGLNode.

void setAmbientColor const MFFloat &  ambientColor  ) 
 

Sets the ambient color attribute.

void setDiffuseColor const MFFloat &  diffuseColor  ) 
 

Sets the diffuse color attribute.

void setEmissiveColor const MFFloat &  emissiveColor  ) 
 

Sets the emissisve color attribute.

void setShininess SFFloat  shininess  ) 
 

Sets the shininess attribute.

void setSpecularColor const MFFloat &  specularColor  ) 
 

Sets the specular color attribute.

virtual void update  )  [virtual]
 

Updates the attributes of the node.

Reimplemented from X3DGLNode.


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