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

MaterialNode Class Reference

Abstract base class for material nodes. More...

Inheritance diagram for MaterialNode:

Node Material List of all members.

Public Methods

virtual ~MaterialNode ()=0 throw ()
 Destructor.

virtual const MaterialNode * toMaterial () const throw ()
 Cast to a MaterialNode.

virtual MaterialNode * toMaterial () throw ()
 Cast to a MaterialNode.

virtual const SFFloatgetAmbientIntensity () const=0 throw ()
 Get the ambient intensity.

virtual const SFColorgetDiffuseColor () const=0 throw ()
 Get the diffuse color.

virtual const SFColorgetEmissiveColor () const=0 throw ()
 Get the emissive color.

virtual const SFFloatgetShininess () const=0 throw ()
 Get the shininess.

virtual const SFColorgetSpecularColor () const=0 throw ()
 Get the specular color.

virtual const SFFloatgetTransparency () const=0 throw ()
 Get the transparency.


Protected Methods

 MaterialNode (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.


Detailed Description

Abstract base class for material nodes.


Constructor & Destructor Documentation

~MaterialNode   throw () [pure virtual]
 

Destructor.

MaterialNode const NodeType   nodeType,
const ScopePtr   scope
[protected]
 

Constructor.

Parameters:
nodeType the NodeType associated with the node.
scope the Scope the node belongs to.

Member Function Documentation

const SFFloat & getAmbientIntensity   const throw () [pure virtual]
 

Get the ambient intensity.

Returns:
the ambient intensity.

Implemented in Material.

const SFColor & getDiffuseColor   const throw () [pure virtual]
 

Get the diffuse color.

Returns:
the diffuse color.

Implemented in Material.

const SFColor & getEmissiveColor   const throw () [pure virtual]
 

Get the emissive color.

Returns:
the emissive color.

Implemented in Material.

const SFFloat & getShininess   const throw () [pure virtual]
 

Get the shininess.

Returns:
the shininess.

Implemented in Material.

const SFColor & getSpecularColor   const throw () [pure virtual]
 

Get the specular color.

Returns:
the specular color.

Implemented in Material.

const SFFloat & getTransparency   const throw () [pure virtual]
 

Get the transparency.

Returns:
the transparency.

Implemented in Material.

MaterialNode * toMaterial   throw () [virtual]
 

Cast to a MaterialNode.

Returns:
a pointer to this MaterialNode.

Reimplemented from Node.

const MaterialNode * toMaterial   const throw () [virtual]
 

Cast to a MaterialNode.

Returns:
a pointer to this MaterialNode.

Reimplemented from Node.