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

Color Class Reference

Color node instances. More...

Inheritance diagram for Color:

AbstractBase ColorNode Node Node List of all members.

Public Methods

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

virtual ~Color () throw ()
 Destructor.

virtual const MFColorgetColor () const throw ()
 Get the color array.


Private Methods

void setColor (const FieldValue &mfcolor) throw (std::bad_cast, std::bad_alloc)
void processSet_color (const FieldValue &mfcolor, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_color eventIn handler.


Private Attributes

MFColor color

Friends

class ColorClass

Detailed Description

Color node instances.


Constructor & Destructor Documentation

Color const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

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

~Color   throw () [virtual]
 

Destructor.


Member Function Documentation

const MFColor & getColor   const throw () [virtual]
 

Get the color array.

Returns:
the MFColor object associated with the node.

Implements ColorNode.

void processSet_color const FieldValue   mfcolor,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_color eventIn handler.

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