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

openvrml::vrml97_node::color_node Class Reference

Color node instances. More...

Inheritance diagram for openvrml::vrml97_node::color_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~color_node () throw ()
 Destroy.

virtual const std::vector<
openvrml::color > & 
color () const throw ()
 Get the color array.


Private Member Functions

void process_set_color (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_color eventIn handler.


Private Attributes

mfcolor color_
 color exposedField.


Friends

class color_class
 Class object for Color nodes.


Detailed Description

Color node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::color_node::color_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::color_node.


Member Function Documentation

const std::vector< color > & openvrml::vrml97_node::color_node::color  )  const throw () [virtual]
 

Get the color array.

Returns:
the color array associated with the node.

Implements openvrml::color_node.

void openvrml::vrml97_node::color_node::process_set_color const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_color eventIn handler.

Parameters:
value an mfcolor.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an mfcolor.
std::bad_alloc if memory allocation fails.