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

rdVertices Class Reference

A class for storing an array of rdV3D (3D vertices of type double). More...

#include <rdVertices.h>

Inheritance diagram for rdVertices:

rdPtrArray rdObject List of all members.

Public Member Functions

virtual ~rdVertices ()
 Destructor.

 rdVertices ()
 Default constructor.

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

virtual rdV3DgetVertex (int aIndex)
 Get the vertex at a particular index.

void translate (double aX, double aY, double aZ)
 Translate the vertices by a specified amount.

void rotate (int aXYZ, double aRadians)
 Rotate a the vertices about the X, Y, or Z axis by a specified amount.

virtual void updateObject (bool aDeep=true)
 Update this object based on its XML node.

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 rdV3D (3D vertices of type double).

Version:
1.0
Author:
Frank C. Anderson


Constructor & Destructor Documentation

rdVertices::rdVertices IDOM_Element *  aElement  ) 
 

Construct an rdVertices instance from an XML element.

Parameters:
aElement XML element.


Member Function Documentation

rdV3D * rdVertices::getVertex int  aIndex  )  [virtual]
 

Get the vertex at a particular index.

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

void rdVertices::rotate int  aXYZ,
double  aRadians
 

Rotate a the vertices about the X, Y, or Z axis by a specified amount.

Parameters:
aXYZ Specify whether to rotate about the X (aXYZ=0), Y (aXYZ=1), or Z (aXYZ=2) axes. If aXYZ is not 0, 1, or 2, no rotation is performed.
aRadians Amount of rotation in radians.

void rdVertices::translate double  aX,
double  aY,
double  aZ
 

Translate the vertices by a specified amount.

Parameters:
aX Amount to translate in the X direction.
aY Amount to translate in the Y direction.
aZ Amount to translate in the Z direction.

void rdVertices::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.

void rdVertices::updateObject bool  aDeep = true  )  [virtual]
 

Update this object based on its XML node.

Parameters:
aDeep If true, update this object and all its child objects (that is, member variables that are rdObject's); if false, update only the member variables that are not rdObject's.

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