MeVisLabToolboxReference
ml::WEMQuadPatch Class Reference

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

#include <WEMQuadPatch.h>

Inheritance diagram for ml::WEMQuadPatch:
ml::WEMPatch

List of all members.

Public Member Functions

 WEMQuadPatch (unsigned int bs=8192)
 Standard constructor.
 WEMQuadPatch (WEM *wem, unsigned int bs=8192)
 Constructor which takes a pointer to the WEM this WEMPatch is in.
 WEMQuadPatch (const WEMQuadPatch &wemPatch)
 Copy constructor.
virtual ~WEMQuadPatch ()
 Standard destructor.
virtual void dispose ()
 Disposes of internal data structures.
virtual PatchTypes getPatchType () const
 Get mesh type.
virtual unsigned int getNumFaces () const
 Returns the number of faces in the patch.
WEMIndexVector< WEMQuad > * getFaces ()
 Returns the pointer to the internal faces structure.
const WEMIndexVector< WEMQuad > * getFaces () const
 Returns the pointer to the internal faces structure.
virtual WEMFacegetFaceAt (unsigned int index)
 Returns the face at the given index.
virtual const WEMFacegetFaceAt (unsigned int index) const
 Returns the face at the given index.
WEMQuadgetQuadAt (unsigned int index)
 Returns the WEMQuad at the given index.
const WEMQuadgetQuadAt (unsigned int index) const
 Returns the WEMQuad at the given index.
virtual WEMFaceaddFace ()
 Instantiates a new WEMQuad and adds it to the internal faces vector. Returns a pointer to this newly added face.
WEMQuadaddQuad ()
 Instantiates a new WEMQuad and adds it to the internal faces vector. Returns a pointer to this newly added face.
void delQuad (WEMQuad *quad)
 Deletes a quad and erases it from the internal faces vector.

Detailed Description

This represents a WEMPatch consisting of quads only.

Definition at line 23 of file WEMQuadPatch.h.


Constructor & Destructor Documentation

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

Standard constructor.

ml::WEMQuadPatch::WEMQuadPatch ( 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::WEMQuadPatch::WEMQuadPatch ( const WEMQuadPatch wemPatch)

Copy constructor.

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

Standard destructor.


Member Function Documentation

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

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

Implements ml::WEMPatch.

WEMQuad* ml::WEMQuadPatch::addQuad ( )

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

void ml::WEMQuadPatch::delQuad ( WEMQuad quad)

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

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

Disposes of internal data structures.

Reimplemented from ml::WEMPatch.

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

Returns the face at the given index.

Implements ml::WEMPatch.

Definition at line 54 of file WEMQuadPatch.h.

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

Returns the face at the given index.

Implements ml::WEMPatch.

Definition at line 56 of file WEMQuadPatch.h.

References getFaceAt().

Referenced by getFaceAt().

const WEMIndexVector<WEMQuad>* ml::WEMQuadPatch::getFaces ( ) const [inline]

Returns the pointer to the internal faces structure.

Definition at line 49 of file WEMQuadPatch.h.

References getFaces().

Referenced by getFaces().

WEMIndexVector<WEMQuad>* ml::WEMQuadPatch::getFaces ( ) [inline]

Returns the pointer to the internal faces structure.

Definition at line 47 of file WEMQuadPatch.h.

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

Returns the number of faces in the patch.

Reimplemented from ml::WEMPatch.

Definition at line 45 of file WEMQuadPatch.h.

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

Get mesh type.

Implements ml::WEMPatch.

Definition at line 40 of file WEMQuadPatch.h.

References ml::WEM_PATCH_QUADS.

WEMQuad* ml::WEMQuadPatch::getQuadAt ( unsigned int  index) [inline]

Returns the WEMQuad at the given index.

Definition at line 58 of file WEMQuadPatch.h.

const WEMQuad* ml::WEMQuadPatch::getQuadAt ( unsigned int  index) const [inline]

Returns the WEMQuad at the given index.

Definition at line 60 of file WEMQuadPatch.h.

References getQuadAt().

Referenced by getQuadAt().


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