openvrml::vrml97_node::material_node Class Reference

Inheritance diagram for openvrml::vrml97_node::material_node:
[legend]
List of all members.

Detailed Description

Material node instances.


Public Member Functions

 material_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &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 Attributes

exposedfield< sffloatambient_intensity_
 ambientIntensity exposedField.
exposedfield< sfcolordiffuse_color_
 diffuseColor exposedField.
exposedfield< sfcoloremissive_color_
 emissiveColor exposedField.
exposedfield< sffloatshininess_
 shininess exposedField.
exposedfield< sfcolorspecular_color_
 specularColor exposedField.
exposedfield< sffloattransparency_
 transparency exposedField.

Friends

class material_class
 Class object for Material nodes.

Constructor & Destructor Documentation

openvrml::vrml97_node::material_node::material_node ( const node_type type,
const boost::shared_ptr< openvrml::scope > &  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.

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

ambientIntensity exposedField.

diffuseColor exposedField.

emissiveColor exposedField.

shininess exposedField.

specularColor exposedField.

transparency exposedField.