MeVisLabToolboxReference
|
This represents a WEMPatch consisting of triangles only. More...
#include <WEMTrianglePatch.h>
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 () |
Disposes of internal data structures. | |
virtual PatchTypes | getPatchType () const |
Returns the mesh type. | |
virtual unsigned int | getNumFaces () const |
Returns the number of faces in the patch. | |
WEMIndexVector< WEMTriangle > * | getFaces () |
Returns the pointer to the internal faces structure. | |
const WEMIndexVector < WEMTriangle > * | getFaces () const |
Returns the pointer to the internal faces structure. | |
virtual WEMFace * | getFaceAt (unsigned int index) |
Returns the face at the given index. | |
virtual const WEMFace * | getFaceAt (unsigned int index) const |
Returns the face at the given index. | |
WEMTriangle * | getTriangleAt (unsigned int index) |
Returns the WEMTriangle at the given index. | |
const WEMTriangle * | getTriangleAt (unsigned int index) const |
Returns the WEMTriangle at the given index. | |
virtual WEMFace * | addFace () |
Instantiates a new WEMTriangle and adds it to the internal faces vector. Returns a pointer to this newly added face. | |
WEMTriangle * | addTriangle () |
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 | removeNodeFromPatch (WEMNode *node) |
Removes the given node from this patch. | |
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) |
Deletes a tetrahedron. | |
void | closeBoundaries (TriangulationModes triangulationMode) |
Closes boundaries within the patch. | |
void | convertIndexedFace (WEMIndexedFace *indexedFace, TriangulationModes triangulationMode) |
Adds the given indexed face to this patch. |
This represents a WEMPatch consisting of triangles only.
Definition at line 24 of file WEMTrianglePatch.h.
ml::WEMTrianglePatch::WEMTrianglePatch | ( | unsigned int | bs = 8192 | ) |
Standard constructor.
ml::WEMTrianglePatch::WEMTrianglePatch | ( | WEM * | wem, |
unsigned int | bs = 8192 |
||
) |
ml::WEMTrianglePatch::WEMTrianglePatch | ( | const WEMTrianglePatch & | wemPatch | ) |
Copy constructor.
virtual ml::WEMTrianglePatch::~WEMTrianglePatch | ( | ) | [virtual] |
Standard destructor.
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 the patch.
void ml::WEMTrianglePatch::convertIndexedFace | ( | WEMIndexedFace * | indexedFace, |
TriangulationModes | triangulationMode | ||
) |
Adds the given indexed face to this 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 | ) |
Deletes a tetrahedron.
void ml::WEMTrianglePatch::delTriangle | ( | WEMTriangle * | triangle | ) |
Deletes a triangle and erases it from the internal faces vector.
virtual void ml::WEMTrianglePatch::dispose | ( | ) | [virtual] |
Disposes of internal data structures.
Reimplemented from ml::WEMPatch.
virtual WEMFace* ml::WEMTrianglePatch::getFaceAt | ( | unsigned int | index | ) | [inline, virtual] |
Returns the face at the given index.
Implements ml::WEMPatch.
Definition at line 54 of file WEMTrianglePatch.h.
virtual const WEMFace* ml::WEMTrianglePatch::getFaceAt | ( | unsigned int | index | ) | const [inline, virtual] |
Returns the face at the given index.
Implements ml::WEMPatch.
Definition at line 56 of file WEMTrianglePatch.h.
References getFaceAt().
Referenced by getFaceAt().
WEMIndexVector<WEMTriangle>* ml::WEMTrianglePatch::getFaces | ( | ) | [inline] |
Returns the pointer to the internal faces structure.
Definition at line 47 of file WEMTrianglePatch.h.
const WEMIndexVector<WEMTriangle>* ml::WEMTrianglePatch::getFaces | ( | ) | const [inline] |
Returns the pointer to the internal faces structure.
Definition at line 49 of file WEMTrianglePatch.h.
References getFaces().
Referenced by getFaces().
virtual unsigned int ml::WEMTrianglePatch::getNumFaces | ( | ) | const [inline, virtual] |
Returns the number of faces in the patch.
Reimplemented from ml::WEMPatch.
Definition at line 45 of file WEMTrianglePatch.h.
virtual PatchTypes ml::WEMTrianglePatch::getPatchType | ( | ) | const [inline, virtual] |
Returns the mesh type.
Implements ml::WEMPatch.
Definition at line 40 of file WEMTrianglePatch.h.
References ml::WEM_PATCH_TRIANGLES.
WEMTriangle* ml::WEMTrianglePatch::getTriangleAt | ( | unsigned int | index | ) | [inline] |
Returns the WEMTriangle at the given index.
Definition at line 58 of file WEMTrianglePatch.h.
const WEMTriangle* ml::WEMTrianglePatch::getTriangleAt | ( | unsigned int | index | ) | const [inline] |
Returns the WEMTriangle at the given index.
Definition at line 60 of file WEMTrianglePatch.h.
References getTriangleAt().
Referenced by getTriangleAt().
void ml::WEMTrianglePatch::removeNodeFromPatch | ( | WEMNode * | node | ) |
Removes the given node from this patch.