MeVisLabToolboxReference
ml::WEMPolygonPatch Class Reference

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

#include <WEMPolygonPatch.h>

Inheritance diagram for ml::WEMPolygonPatch:
ml::WEMPatch

List of all members.

Public Member Functions

 WEMPolygonPatch (unsigned int bs=8192)
 Standard constructor.
 WEMPolygonPatch (WEM *wem, unsigned int bs=8192)
 Constructor which takes a pointer to the WEM this WEMPatch is in.
 WEMPolygonPatch (const WEMPolygonPatch &wemPatch)
 Copy constructor.
virtual ~WEMPolygonPatch ()
 Standard destructor.
virtual void dispose ()
 Disposes of internal data structures.
virtual PatchTypes getPatchType () const
 Returns the mesh type of this patch.
virtual unsigned int getNumFaces () const
 Returns the number of faces in the patch.
WEMIndexVector< WEMPolygon > * getFaces ()
 Returns the pointer to internal faces structure.
const WEMIndexVector
< WEMPolygon > * 
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.
WEMPolygongetPolygonAt (unsigned int index)
 Returns the WEMPolygon at the given index.
const WEMPolygongetPolygonAt (unsigned int index) const
 Returns the WEMPolygon at the given index.
virtual WEMFaceaddFace ()
 Instantiates a new WEMPolygon and adds it to the internal faces vector. Returns a pointer to this newly added face.
WEMPolygonaddPolygon ()
 Instantiates a new WEMPolygon and adds it to the internal faces vector. Returns a pointer to this newly added face.
void delPolygon (WEMPolygon *polygon)
 Deletes a polygon and erases it from the internal faces vector.
void convertIndexedFace (WEMIndexedFace *indexedFace)
 Adds the given indexed face to this patch.

Detailed Description

This represents a WEMPatch consisting of polygons only.

Definition at line 24 of file WEMPolygonPatch.h.


Constructor & Destructor Documentation

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

Standard constructor.

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

Copy constructor.

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

Standard destructor.


Member Function Documentation

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

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

Implements ml::WEMPatch.

WEMPolygon* ml::WEMPolygonPatch::addPolygon ( )

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

void ml::WEMPolygonPatch::convertIndexedFace ( WEMIndexedFace indexedFace)

Adds the given indexed face to this patch.

void ml::WEMPolygonPatch::delPolygon ( WEMPolygon polygon)

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

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

Disposes of internal data structures.

Reimplemented from ml::WEMPatch.

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

Returns the face at the given index.

Implements ml::WEMPatch.

Definition at line 55 of file WEMPolygonPatch.h.

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

Returns the face at the given index.

Implements ml::WEMPatch.

Definition at line 57 of file WEMPolygonPatch.h.

References getFaceAt().

Referenced by getFaceAt().

const WEMIndexVector<WEMPolygon>* ml::WEMPolygonPatch::getFaces ( ) const [inline]

Returns the pointer to the internal faces structure.

Definition at line 50 of file WEMPolygonPatch.h.

References getFaces().

Referenced by getFaces().

WEMIndexVector<WEMPolygon>* ml::WEMPolygonPatch::getFaces ( ) [inline]

Returns the pointer to internal faces structure.

Definition at line 48 of file WEMPolygonPatch.h.

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

Returns the number of faces in the patch.

Reimplemented from ml::WEMPatch.

Definition at line 46 of file WEMPolygonPatch.h.

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

Returns the mesh type of this patch.

Implements ml::WEMPatch.

Definition at line 41 of file WEMPolygonPatch.h.

References ml::WEM_PATCH_POLYGONS.

const WEMPolygon* ml::WEMPolygonPatch::getPolygonAt ( unsigned int  index) const [inline]

Returns the WEMPolygon at the given index.

Definition at line 61 of file WEMPolygonPatch.h.

References getPolygonAt().

Referenced by getPolygonAt().

WEMPolygon* ml::WEMPolygonPatch::getPolygonAt ( unsigned int  index) [inline]

Returns the WEMPolygon at the given index.

Definition at line 59 of file WEMPolygonPatch.h.


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