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

openvrml::vrml97_node::material_node Class Reference

Material node instances. More...

Inheritance diagram for openvrml::vrml97_node::material_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::vrml97_node::material_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 material_node (const node_type &type, const scope_ptr &scope)
 Construct.

virtual ~material_node () throw ()
 Destroy.

virtual float ambient_intensity () const throw ()
 Get the ambient intensity.

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

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

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

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

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


Private Member Functions

void process_set_ambientIntensity (const field_value &value, double timestamp) throw (std::bad_cast)
 set_ambientIntensity eventIn handler.

void process_set_diffuseColor (const field_value &value, double timestamp) throw (std::bad_cast)
 set_diffuseColor eventIn handler.

void process_set_emissiveColor (const field_value &value, double timestamp) throw (std::bad_cast)
 set_emissiveColor eventIn handler.

void process_set_shininess (const field_value &value, double timestamp) throw (std::bad_cast)
 set_shininess eventIn handler.

void process_set_specularColor (const field_value &value, double timestamp) throw (std::bad_cast)
 set_specularColor eventIn handler.

void process_set_transparency (const field_value &value, double timestamp) throw (std::bad_cast)
 set_transparency eventIn handler.


Private Attributes

sffloat ambientIntensity
 ambientIntensity exposedField.

sfcolor diffuseColor
 diffuseColor exposedField.

sfcolor emissiveColor
 emissiveColor exposedField.

sffloat shininess_
 shininess exposedField.

sfcolor specularColor
 specularColor exposedField.

sffloat transparency_
 transparency exposedField.


Friends

class material_class
 Class object for Material nodes.


Detailed Description

Material node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::material_node::material_node const node_type type,
const scope_ptr scope
 

Construct.

Parameters:
type the node_type associated with this node.
scope the scope to which the node belongs.

Reimplemented from openvrml::material_node.

openvrml::vrml97_node::material_node::~material_node  )  throw () [virtual]
 

Destroy.

Implements openvrml::material_node.


Member Function Documentation

float openvrml::vrml97_node::material_node::ambient_intensity  )  const throw () [virtual]
 

Get the ambient intensity.

Returns:
the ambient intensity.

Implements openvrml::material_node.

const color & openvrml::vrml97_node::material_node::diffuse_color  )  const throw () [virtual]
 

Get the diffuse color.

Returns:
the diffuse color.

Implements openvrml::material_node.

const color & openvrml::vrml97_node::material_node::emissive_color  )  const throw () [virtual]
 

Get the emissive color.

Returns:
the emissive color.

Implements openvrml::material_node.

void openvrml::vrml97_node::material_node::process_set_ambientIntensity const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_ambientIntensity eventIn handler.

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

void openvrml::vrml97_node::material_node::process_set_diffuseColor const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_diffuseColor eventIn handler.

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

void openvrml::vrml97_node::material_node::process_set_emissiveColor const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_emissiveColor eventIn handler.

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

void openvrml::vrml97_node::material_node::process_set_shininess const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_shininess eventIn handler.

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

void openvrml::vrml97_node::material_node::process_set_specularColor const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_specularColor eventIn handler.

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

void openvrml::vrml97_node::material_node::process_set_transparency const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_transparency eventIn handler.

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

float openvrml::vrml97_node::material_node::shininess  )  const throw () [virtual]
 

Get the shininess.

Returns:
the shininess.

Implements openvrml::material_node.

const color & openvrml::vrml97_node::material_node::specular_color  )  const throw () [virtual]
 

Get the specular color.

Returns:
the specular color.

Implements openvrml::material_node.

float openvrml::vrml97_node::material_node::transparency  )  const throw () [virtual]
 

Get the transparency.

Returns:
the transparency.

Implements openvrml::material_node.


Friends And Related Function Documentation

openvrml::vrml97_node::material_node::material_class [friend]
 

Class object for Material nodes.


Member Data Documentation

sffloat openvrml::vrml97_node::material_node::ambientIntensity [private]
 

ambientIntensity exposedField.

sfcolor openvrml::vrml97_node::material_node::diffuseColor [private]
 

diffuseColor exposedField.

sfcolor openvrml::vrml97_node::material_node::emissiveColor [private]
 

emissiveColor exposedField.

sffloat openvrml::vrml97_node::material_node::shininess_ [private]
 

shininess exposedField.

sfcolor openvrml::vrml97_node::material_node::specularColor [private]
 

specularColor exposedField.

sffloat openvrml::vrml97_node::material_node::transparency_ [private]
 

transparency exposedField.