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

Material Class Reference

Material node instances. More...

Inheritance diagram for Material:

AbstractBase MaterialNode Node Node List of all members.

Public Methods

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

virtual ~Material () throw ()
 Destructor.

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

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

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

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

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

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


Private Methods

void processSet_ambientIntensity (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_ambientIntensity eventIn handler.

void processSet_diffuseColor (const FieldValue &sfcolor, double timestamp) throw (std::bad_cast)
 set_diffuseColor eventIn handler.

void processSet_emissiveColor (const FieldValue &sfcolor, double timestamp) throw (std::bad_cast)
 set_emissiveColor eventIn handler.

void processSet_shininess (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_shininess eventIn handler.

void processSet_specularColor (const FieldValue &sfcolor, double timestamp) throw (std::bad_cast)
 set_specularColor eventIn handler.

void processSet_transparency (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_transparency eventIn handler.


Private Attributes

SFFloat ambientIntensity
SFColor diffuseColor
SFColor emissiveColor
SFFloat shininess
SFColor specularColor
SFFloat transparency

Friends

class MaterialClass

Detailed Description

Material node instances.


Constructor & Destructor Documentation

Material const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

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

~Material   throw () [virtual]
 

Destructor.


Member Function Documentation

const SFFloat & getAmbientIntensity   const throw () [virtual]
 

Get the ambient intensity.

Returns:
the ambient intensity.

Implements MaterialNode.

const SFColor & getDiffuseColor   const throw () [virtual]
 

Get the diffuse color.

Returns:
the diffuse color.

Implements MaterialNode.

const SFColor & getEmissiveColor   const throw () [virtual]
 

Get the emissive color.

Returns:
the emissive color.

Implements MaterialNode.

const SFFloat & getShininess   const throw () [virtual]
 

Get the shininess.

Returns:
the shininess.

Implements MaterialNode.

const SFColor & getSpecularColor   const throw () [virtual]
 

Get the specular color.

Returns:
the specular color.

Implements MaterialNode.

const SFFloat & getTransparency   const throw () [virtual]
 

Get the transparency.

Returns:
the transparency.

Implements MaterialNode.

void processSet_ambientIntensity const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_ambientIntensity eventIn handler.

Parameters:
sffloat a value from 0.0 to 1.0.
timestamp the current time.
Exceptions:
std::bad_cast if sffloat is not an SFFloat.

void processSet_diffuseColor const FieldValue   sfcolor,
double    timestamp
throw (std::bad_cast) [private]
 

set_diffuseColor eventIn handler.

Parameters:
sfcolor an SFColor value.
timestamp the current time.
Exceptions:
std::bad_cast if sfcolor is not an SFColor.

void processSet_emissiveColor const FieldValue   sfcolor,
double    timestamp
throw (std::bad_cast) [private]
 

set_emissiveColor eventIn handler.

Parameters:
sfcolor an SFColor value.
timestamp the current time.
Exceptions:
std::bad_cast if sfcolor is not an SFColor.

void processSet_shininess const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_shininess eventIn handler.

Parameters:
sffloat a value from 0.0 to 1.0.
timestamp the current time.
Exceptions:
std::bad_cast if sffloat is not an SFFloat.

void processSet_specularColor const FieldValue   sfcolor,
double    timestamp
throw (std::bad_cast) [private]
 

set_specularColor eventIn handler.

Parameters:
sfcolor an SFColor value.
timestamp the current time.
Exceptions:
std::bad_cast if sfcolor is not an SFColor.

void processSet_transparency const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_transparency eventIn handler.

Parameters:
sffloat a value from 0.0 to 1.0.
timestamp the current time.
Exceptions:
std::bad_cast if sffloat is not an SFFloat.