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 ()
 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< WEMPolygon > * getFaces ()
 Get pointer to faces.
const WEMIndexVector
< WEMPolygon > * 
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.
WEMPolygongetPolygonAt (unsigned int index)
 Get WEMPolygon at given index.
const WEMPolygongetPolygonAt (unsigned int index) const
 Get WEMPolygon at 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)
 Add indexed face to current 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  ) 

Add indexed face to current patch.

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

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

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

Dispose of internal data structures.

Reimplemented from ml::WEMPatch.

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

Get face at given index.

Implements ml::WEMPatch.

Definition at line 57 of file WEMPolygonPatch.h.

References getFaceAt().

Referenced by getFaceAt().

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

Get face at given index.

Implements ml::WEMPatch.

Definition at line 55 of file WEMPolygonPatch.h.

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

Get pointer to faces.

Definition at line 50 of file WEMPolygonPatch.h.

References getFaces().

Referenced by getFaces().

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

Get pointer to faces.

Definition at line 48 of file WEMPolygonPatch.h.

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

Returns the number of faces in the WEM.

Reimplemented from ml::WEMPatch.

Definition at line 46 of file WEMPolygonPatch.h.

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

Get mesh type.

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]

Get WEMPolygon at given index.

Definition at line 61 of file WEMPolygonPatch.h.

References getPolygonAt().

Referenced by getPolygonAt().

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

Get WEMPolygon at given index.

Definition at line 59 of file WEMPolygonPatch.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