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

AbstractIndexedSet Class Reference

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

Inheritance diagram for AbstractIndexedSet:

AbstractGeometry AbstractBase GeometryNode Node Node IndexedFaceSet IndexedLineSet List of all members.

Public Methods

virtual ~AbstractIndexedSet ()=0 throw ()
 Destructor.

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

virtual void updateModified (NodePath &path, int flags=0x003)
 Propagate the bvolume dirty flag from children to parents.

virtual const ColorNodegetColor () const throw ()

Protected Methods

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

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

void processSet_colorIndex (const FieldValue &mfint32, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_colorIndex eventIn handler.

void processSet_coord (const FieldValue &sfnode, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_coord eventIn handler.

void processSet_coordIndex (const FieldValue &mfint32, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_coordIndex eventIn handler.


Protected Attributes

SFNode color
MFInt32 colorIndex
SFBool colorPerVertex
SFNode coord
MFInt32 coordIndex

Detailed Description

Abstract base class for IndexedFaceSet and IndexedLineSet.


Constructor & Destructor Documentation

~AbstractIndexedSet   throw () [pure virtual]
 

Destructor.

AbstractIndexedSet const NodeType   nodeType,
const ScopePtr   scope
[protected]
 

Constructor.

Parameters:
nodeType the NodeType associated with the instance.
scope the Scope that the new node will belong to.

Member Function Documentation

bool isModified   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 Node.

Reimplemented in IndexedFaceSet.

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

set_color eventIn handler.

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

void processSet_colorIndex const FieldValue   mfint32,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [protected]
 

set_colorIndex eventIn handler.

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

void processSet_coord const FieldValue   sfnode,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [protected]
 

set_coord eventIn handler.

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

void processSet_coordIndex const FieldValue   mfint32,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [protected]
 

set_coordIndex eventIn handler.

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

void updateModified NodePath &    path,
int    flags = 0x003
[virtual]
 

Propagate the bvolume dirty flag from children to parents.

Parameters:
path stack of ancestor nodes.
flags 1 indicates normal modified flag, 2 indicates the bvolume dirty flag, 3 indicates both.

Reimplemented from Node.

Reimplemented in IndexedFaceSet.