Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdTriangles Class Reference

A class for storing an array of rdTriangle objects. More...

#include <rdTriangles.h>

Inheritance diagram for rdTriangles:

rdPtrArray rdObject List of all members.

Public Member Functions

virtual ~rdTriangles ()
 Destructor.

 rdTriangles ()
 Default constructor.

 rdTriangles (IDOM_Element *aElement)
 Construct an rdTriangles instance from an XML element.

void setVertices (rdVertices *aVertices)
 Set the vertices for all triangles.

virtual rdTrianglegetTriangle (int aIndex)
 Get the triangle at a particular index.

void updateIndices ()
 Update the indices of all triangles.

virtual void updateNode (bool aDeep=true)
 Update the XML node representing this object.


Private Member Functions

void setNull ()
 Set all states to their null or default values.


Detailed Description

A class for storing an array of rdTriangle objects.

Version:
1.0
Author:
Frank C. Anderson


Constructor & Destructor Documentation

rdTriangles::rdTriangles IDOM_Element *  aElement  ) 
 

Construct an rdTriangles instance from an XML element.

Parameters:
aElement XML element.


Member Function Documentation

rdTriangle * rdTriangles::getTriangle int  aIndex  )  [virtual]
 

Get the triangle at a particular index.

Parameters:
aIndex Array index of the desired triangle.
See also:
rdPtrArray::get()

void rdTriangles::setVertices rdVertices aVertices  ) 
 

Set the vertices for all triangles.

Parameters:
aVertices Vertices.

void rdTriangles::updateIndices  ) 
 

Update the indices of all triangles.

Parameters:
aVerts List of vertices.
See also:
rdTriangle::updateIndices()

void rdTriangles::updateNode bool  aDeep = true  )  [virtual]
 

Update the XML node representing this object.

Parameters:
aDeep If true, update the XML node of this object AND the XML nodes of all class members that are rdObjects (child nodes); if false, update only the XML node of this object without updating the XML nodes of its children.

Reimplemented from rdPtrArray.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:13 2003 for Simulation Software by doxygen1.3