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

openvrml::vrml97_node::abstract_indexed_set_node Class Reference

Abstract base class for IndexedFaceSet and IndexedLineSet. More...

Inheritance diagram for openvrml::vrml97_node::abstract_indexed_set_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual bool modified () const
 Determine whether the node has been modified.

virtual const color_nodecolor () const throw ()
 color_node.


Protected Member Functions

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

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

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

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

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


Protected Attributes

sfnode color_
 color exposedField.

mfint32 colorIndex
 colorIndex field.

sfbool colorPerVertex
 colorPerVertex field.

sfnode coord
 coord exposedField.

mfint32 coordIndex
 coordIndex field.


Detailed Description

Abstract base class for IndexedFaceSet and IndexedLineSet.


Constructor & Destructor Documentation

openvrml::vrml97_node::abstract_indexed_set_node::~abstract_indexed_set_node  )  throw () [pure virtual]
 

Destroy.

openvrml::vrml97_node::abstract_indexed_set_node::abstract_indexed_set_node const node_type type,
const scope_ptr scope
[protected]
 

Construct.

Parameters:
type the node_type associated with the instance.
scope the scope that the new node will belong to.

Member Function Documentation

const openvrml::color_node * openvrml::vrml97_node::abstract_indexed_set_node::color  )  const throw () [virtual]
 

color_node.

Returns:
the color_node, or 0 if none is set.

Reimplemented from openvrml::geometry_node.

bool openvrml::vrml97_node::abstract_indexed_set_node::modified  )  const [virtual]
 

Determine whether the node has been modified.

Returns:
true if the node or one of its children has been modified, false otherwise.

Reimplemented from openvrml::node.

Reimplemented in openvrml::vrml97_node::indexed_face_set_node.

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

set_color eventIn handler.

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

void openvrml::vrml97_node::abstract_indexed_set_node::process_set_colorIndex const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [protected]
 

set_colorIndex eventIn handler.

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

void openvrml::vrml97_node::abstract_indexed_set_node::process_set_coord const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [protected]
 

set_coord eventIn handler.

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

void openvrml::vrml97_node::abstract_indexed_set_node::process_set_coordIndex const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [protected]
 

set_coordIndex eventIn handler.

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

Member Data Documentation

sfnode openvrml::vrml97_node::abstract_indexed_set_node::color_ [protected]
 

color exposedField.

mfint32 openvrml::vrml97_node::abstract_indexed_set_node::colorIndex [protected]
 

colorIndex field.

sfbool openvrml::vrml97_node::abstract_indexed_set_node::colorPerVertex [protected]
 

colorPerVertex field.

sfnode openvrml::vrml97_node::abstract_indexed_set_node::coord [protected]
 

coord exposedField.

mfint32 openvrml::vrml97_node::abstract_indexed_set_node::coordIndex [protected]
 

coordIndex field.