ml::WEMPrimitive Class Reference

This is the base class for all WEM elements like nodes, edges and faces. More...

#include <WEMPrimitive.h>

Inheritance diagram for ml::WEMPrimitive:

ml::WEMEdge ml::WEMFace ml::WEMNode ml::WEMPolygon ml::WEMQuad ml::WEMTriangle

List of all members.

Public Member Functions

 WEMPrimitive ()
 Standard constructor.
 WEMPrimitive (const WEMPrimitive &p)
 Copy constructor.
virtual ~WEMPrimitive ()
 Standard destructor.
int getEntryNumber () const
 Get entry number.
void setEntryNumber (int e)
 Set entry number.
bool isSet (unsigned int bit) const
 Is bit-flag set?
void setFlag (unsigned int bit)
 Set given bit-flag.
void unsetFlag (unsigned int bit)
 Unset given bit-flag.
void clearFlag ()
 Clear bit-flag.
bool isTraversed () const
 Is primitive traversed?
void setTraversed (bool traversed)
 Set traversed flag.
int getHeapPosition () const
 Get heap position.
bool inHeap () const
 Is this primitive in the heap?
void setHeapPosition (int heapPosition)
 Set heap position.
double getHeapValue () const
 Get heap value.
void setHeapValue (double heapValue)
 Set heap value.


Detailed Description

This is the base class for all WEM elements like nodes, edges and faces.

Definition at line 24 of file WEMPrimitive.h.


Constructor & Destructor Documentation

ml::WEMPrimitive::WEMPrimitive (  ) 

Standard constructor.

ml::WEMPrimitive::WEMPrimitive ( const WEMPrimitive p  ) 

Copy constructor.

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

Standard destructor.


Member Function Documentation

void ml::WEMPrimitive::clearFlag (  )  [inline]

Clear bit-flag.

Definition at line 46 of file WEMPrimitive.h.

int ml::WEMPrimitive::getEntryNumber (  )  const [inline]

Get entry number.

Definition at line 36 of file WEMPrimitive.h.

int ml::WEMPrimitive::getHeapPosition (  )  const [inline]

double ml::WEMPrimitive::getHeapValue (  )  const [inline]

Get heap value.

Definition at line 58 of file WEMPrimitive.h.

Referenced by ml::WEMHeap< T >::remove(), and ml::WEMHeap< T >::update().

bool ml::WEMPrimitive::inHeap (  )  const [inline]

Is this primitive in the heap?

Definition at line 54 of file WEMPrimitive.h.

bool ml::WEMPrimitive::isSet ( unsigned int  bit  )  const [inline]

Is bit-flag set?

Definition at line 40 of file WEMPrimitive.h.

bool ml::WEMPrimitive::isTraversed (  )  const [inline]

Is primitive traversed?

Definition at line 48 of file WEMPrimitive.h.

References WEM_TRAVERSED_BIT.

void ml::WEMPrimitive::setEntryNumber ( int  e  )  [inline]

Set entry number.

Definition at line 38 of file WEMPrimitive.h.

void ml::WEMPrimitive::setFlag ( unsigned int  bit  )  [inline]

Set given bit-flag.

Definition at line 42 of file WEMPrimitive.h.

void ml::WEMPrimitive::setHeapPosition ( int  heapPosition  )  [inline]

void ml::WEMPrimitive::setHeapValue ( double  heapValue  )  [inline]

Set heap value.

Definition at line 60 of file WEMPrimitive.h.

Referenced by ml::WEMHeap< T >::insert(), and ml::WEMHeap< T >::update().

void ml::WEMPrimitive::setTraversed ( bool  traversed  ) 

Set traversed flag.

void ml::WEMPrimitive::unsetFlag ( unsigned int  bit  )  [inline]

Unset given bit-flag.

Definition at line 44 of file WEMPrimitive.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