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

openvrml::color_node Class Reference

Abstract base class for color nodes. More...

Inheritance diagram for openvrml::color_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~color_node ()=0 throw ()
 Destroy.

virtual const color_node * to_color () const throw ()
 Cast to a color_node.

virtual color_node * to_color () throw ()
 Cast to a color_node.

virtual const std::vector<
openvrml::color > & 
color () const=0 throw ()
 Get the color array encapsulated by this node.


Protected Member Functions

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


Detailed Description

Abstract base class for color nodes.


Constructor & Destructor Documentation

openvrml::color_node::~color_node  )  throw () [pure virtual]
 

Destroy.

Implemented in openvrml::vrml97_node::color_node.

openvrml::color_node::color_node const node_type type,
const scope_ptr scope
throw () [protected]
 

Construct.

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

Reimplemented in openvrml::vrml97_node::color_node.


Member Function Documentation

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

Get the color array encapsulated by this node.

Returns:
the color array for this node.

Implemented in openvrml::vrml97_node::color_node.

color_node * openvrml::color_node::to_color  )  throw () [virtual]
 

Cast to a color_node.

Returns:
a pointer to this color_node.

Reimplemented from openvrml::node.

const color_node * openvrml::color_node::to_color  )  const throw () [virtual]
 

Cast to a color_node.

Returns:
a pointer to this color_node.

Reimplemented from openvrml::node.