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

rdEdge Class Reference

An edge. More...

#include <rdEdge.h>

Inheritance diagram for rdEdge:

rdObject List of all members.

Public Member Functions

 rdEdge ()
 Construct an empty graphics model.

 rdEdge (IDOM_Element *aElement)
 Construct a graphics model from an XML Element.

virtual ~rdEdge ()
 Destructor.

const char * getVertexName (int aWhich) const
int getVertexIndex (int aWhich) const
 Get the index of a vertex.

void updateIndicies (rdVertices *aVerts)
 Update the triangle indices based on the names of the vertices.

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.

void updateData ()
 Update the member data of this object based on its XML node.


Private Member Functions

void setNull ()
 Set NULL values for all member variables.


Private Attributes

char * _v3dNames [2]
int _v3dIndex [2]

Detailed Description

An edge.

Author:
Frank C. Anderson


Constructor & Destructor Documentation

rdEdge::rdEdge IDOM_Element *  aElement  ) 
 

Construct a graphics model from an XML Element.

Parameters:
aElement XML element.


Member Function Documentation

int rdEdge::getVertexIndex int  aWhich  )  const
 

Get the index of a vertex.

Parameters:
aWhich Which vertex index to get- 0 or 1.
Returns:
Vertiex index, -1 on error.

void rdEdge::updateData  ) 
 

Update the member data of this object based on its XML node.

Member objects (children) are not updated.

void rdEdge::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 rdObject.

void rdEdge::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 rdObject.


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