ml::WEMTrianglePatch Class Reference

This represents a WEMPatch consisting of triangles only. More...

#include <WEMTrianglePatch.h>

Inheritance diagram for ml::WEMTrianglePatch:

ml::WEMPatch

List of all members.

Public Member Functions

 WEMTrianglePatch (unsigned int bs=8192)
 Standard constructor.
 WEMTrianglePatch (WEM *wem, unsigned int bs=8192)
 Constructor which takes a pointer to the WEM this WEMPatch is in.
 WEMTrianglePatch (const WEMTrianglePatch &wemPatch)
 Copy constructor.
virtual ~WEMTrianglePatch ()
 Standard destructor.
virtual void dispose ()
 Dispose of internal data structures.
virtual PatchTypes getPatchType () const
 Get mesh type.
virtual unsigned int getNumFaces () const
 Returns the number of faces in the WEM.
WEMIndexVector< WEMTriangle > * getFaces ()
 Get pointer to faces.
const WEMIndexVector
< WEMTriangle > * 
getFaces () const
 Get pointer to faces.
virtual WEMFacegetFaceAt (unsigned int index)
 Get face at given index.
virtual const WEMFacegetFaceAt (unsigned int index) const
 Get face at given index.
WEMTrianglegetTriangleAt (unsigned int index)
 Get WEMTriangle at given index.
const WEMTrianglegetTriangleAt (unsigned int index) const
 Get WEMTriangle at given index.
virtual WEMFaceaddFace ()
 Instantiates a new WEMTriangle and adds it to the internal faces vector. Returns a pointer to this newly added face.
WEMTriangleaddTriangle ()
 Instantiates a new WEMTriangle and adds it to the internal faces vector. Returns a pointer to this newly added face.
void delTriangle (WEMTriangle *triangle)
 Deletes a triangle and erases it from the internal faces vector.
void deleteNodesWithValenceThree ()
 Deletes all nodes with a valence of three.
bool deleteNodeWithValenceThree (WEMNode *node)
 Deletes a single node with a valence of three.
void deleteTetrahedron (WEMNode *node)
 Delete tetrahedron.
void closeBoundaries (TriangulationModes triangulationMode)
 Closes boundaries within patch.
void convertIndexedFace (WEMIndexedFace *indexedFace, TriangulationModes triangulationMode)
 Add indexed face to current patch.


Detailed Description

This represents a WEMPatch consisting of triangles only.

Definition at line 24 of file WEMTrianglePatch.h.


Constructor & Destructor Documentation

ml::WEMTrianglePatch::WEMTrianglePatch ( unsigned int  bs = 8192  ) 

Standard constructor.

ml::WEMTrianglePatch::WEMTrianglePatch ( WEM wem,
unsigned int  bs = 8192 
)

Constructor which takes a pointer to the WEM this WEMPatch is in.

In this method, the unique id is set.

ml::WEMTrianglePatch::WEMTrianglePatch ( const WEMTrianglePatch wemPatch  ) 

Copy constructor.

virtual ml::WEMTrianglePatch::~WEMTrianglePatch (  )  [virtual]

Standard destructor.


Member Function Documentation

virtual WEMFace* ml::WEMTrianglePatch::addFace (  )  [virtual]

Instantiates a new WEMTriangle and adds it to the internal faces vector. Returns a pointer to this newly added face.

Implements ml::WEMPatch.

WEMTriangle* ml::WEMTrianglePatch::addTriangle (  ) 

Instantiates a new WEMTriangle and adds it to the internal faces vector. Returns a pointer to this newly added face.

void ml::WEMTrianglePatch::closeBoundaries ( TriangulationModes  triangulationMode  ) 

Closes boundaries within patch.

void ml::WEMTrianglePatch::convertIndexedFace ( WEMIndexedFace indexedFace,
TriangulationModes  triangulationMode 
)

Add indexed face to current patch.

void ml::WEMTrianglePatch::deleteNodesWithValenceThree (  ) 

Deletes all nodes with a valence of three.

bool ml::WEMTrianglePatch::deleteNodeWithValenceThree ( WEMNode node  ) 

Deletes a single node with a valence of three.

void ml::WEMTrianglePatch::deleteTetrahedron ( WEMNode node  ) 

Delete tetrahedron.

void ml::WEMTrianglePatch::delTriangle ( WEMTriangle triangle  ) 

Deletes a triangle and erases it from the internal faces vector.

virtual void ml::WEMTrianglePatch::dispose (  )  [virtual]

Dispose of internal data structures.

Reimplemented from ml::WEMPatch.

virtual const WEMFace* ml::WEMTrianglePatch::getFaceAt ( unsigned int  index  )  const [inline, virtual]

Get face at given index.

Implements ml::WEMPatch.

Definition at line 56 of file WEMTrianglePatch.h.

References getFaceAt().

Referenced by getFaceAt().

virtual WEMFace* ml::WEMTrianglePatch::getFaceAt ( unsigned int  index  )  [inline, virtual]

Get face at given index.

Implements ml::WEMPatch.

Definition at line 54 of file WEMTrianglePatch.h.

const WEMIndexVector<WEMTriangle>* ml::WEMTrianglePatch::getFaces (  )  const [inline]

Get pointer to faces.

Definition at line 49 of file WEMTrianglePatch.h.

References getFaces().

Referenced by getFaces().

WEMIndexVector<WEMTriangle>* ml::WEMTrianglePatch::getFaces (  )  [inline]

Get pointer to faces.

Definition at line 47 of file WEMTrianglePatch.h.

virtual unsigned int ml::WEMTrianglePatch::getNumFaces (  )  const [inline, virtual]

Returns the number of faces in the WEM.

Reimplemented from ml::WEMPatch.

Definition at line 45 of file WEMTrianglePatch.h.

virtual PatchTypes ml::WEMTrianglePatch::getPatchType (  )  const [inline, virtual]

Get mesh type.

Implements ml::WEMPatch.

Definition at line 40 of file WEMTrianglePatch.h.

References ml::WEM_PATCH_TRIANGLES.

const WEMTriangle* ml::WEMTrianglePatch::getTriangleAt ( unsigned int  index  )  const [inline]

Get WEMTriangle at given index.

Definition at line 60 of file WEMTrianglePatch.h.

References getTriangleAt().

Referenced by getTriangleAt().

WEMTriangle* ml::WEMTrianglePatch::getTriangleAt ( unsigned int  index  )  [inline]

Get WEMTriangle at given index.

Definition at line 58 of file WEMTrianglePatch.h.


The documentation for this class was generated from the following file:

Generated on Sat Sep 3 18:39:41 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8