MeVisLab Toolbox Reference
ml::WEMPrimitive Class Reference

This is the base class for the WEM elements 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

Public Member Functions

 WEMPrimitive ()
 
 WEMPrimitive (const WEMPrimitive &)=default
 
 WEMPrimitive (WEMPrimitive &&p) noexcept
 
WEMPrimitiveoperator= (const WEMPrimitive &)=default
 
WEMPrimitiveoperator= (WEMPrimitive &&p) noexcept
 
virtual ~WEMPrimitive ()=default
 Standard destructor. More...
 
void resetPrimitive ()
 Resets the object to its default constructed state. More...
 
int getEntryNumber () const
 Returns the entry number. More...
 
void setEntryNumber (int e)
 Sets the entry number. More...
 
bool isSet (unsigned int bit) const
 Returns whether the bit-flag is set. More...
 
void setFlag (unsigned int bit)
 Sets the given bit-flag. More...
 
void unsetFlag (unsigned int bit)
 Unsets the given bit-flag. More...
 
void clearFlag ()
 Clears the bit-flag. More...
 
bool isTraversed () const
 Returns whether this primitive has been traversed. More...
 
void setTraversed (bool traversed)
 Sets the traversed flag. More...
 
int getHeapPosition () const
 Returns the heap position. More...
 
bool inHeap () const
 Returns whether this primitive is in the heap. More...
 
void setHeapPosition (int heapPosition)
 Sets the heap position. More...
 
double getHeapValue () const
 Returns the heap value. More...
 
void setHeapValue (double heapValue)
 Sets the heap value. More...
 

Protected Attributes

unsigned int _bitFlag
 Bit-wise flag for custom use. More...
 
int _entryNumber
 Entry number in index vector, for easy deletion and reference. More...
 
int _heapPosition
 Heap position, same like entryNumber but for heaps. More...
 
double _heapValue
 Element value, used for heap sorting. More...
 

Detailed Description

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

Definition at line 27 of file WEMPrimitive.h.

Constructor & Destructor Documentation

◆ WEMPrimitive() [1/3]

ml::WEMPrimitive::WEMPrimitive ( )

◆ WEMPrimitive() [2/3]

ml::WEMPrimitive::WEMPrimitive ( const WEMPrimitive )
default

◆ WEMPrimitive() [3/3]

ml::WEMPrimitive::WEMPrimitive ( WEMPrimitive &&  p)
noexcept

◆ ~WEMPrimitive()

virtual ml::WEMPrimitive::~WEMPrimitive ( )
virtualdefault

Standard destructor.

Member Function Documentation

◆ clearFlag()

void ml::WEMPrimitive::clearFlag ( )
inline

Clears the bit-flag.

Definition at line 52 of file WEMPrimitive.h.

◆ getEntryNumber()

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

Returns the entry number.

The entryNumber is the index into the (vector-like) structure the primitive is stored in internally.

Definition at line 42 of file WEMPrimitive.h.

◆ getHeapPosition()

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

◆ getHeapValue()

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

Returns the heap value.

Definition at line 64 of file WEMPrimitive.h.

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

◆ inHeap()

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

Returns whether this primitive is in the heap.

Definition at line 60 of file WEMPrimitive.h.

◆ isSet()

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

Returns whether the bit-flag is set.

Definition at line 46 of file WEMPrimitive.h.

◆ isTraversed()

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

Returns whether this primitive has been traversed.

Definition at line 54 of file WEMPrimitive.h.

References WEM_TRAVERSED_BIT.

◆ operator=() [1/2]

WEMPrimitive& ml::WEMPrimitive::operator= ( const WEMPrimitive )
default

◆ operator=() [2/2]

WEMPrimitive& ml::WEMPrimitive::operator= ( WEMPrimitive &&  p)
noexcept

◆ resetPrimitive()

void ml::WEMPrimitive::resetPrimitive ( )

Resets the object to its default constructed state.

◆ setEntryNumber()

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

Sets the entry number.

Definition at line 44 of file WEMPrimitive.h.

◆ setFlag()

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

Sets the given bit-flag.

Definition at line 48 of file WEMPrimitive.h.

◆ setHeapPosition()

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

Sets the heap position.

Definition at line 62 of file WEMPrimitive.h.

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

◆ setHeapValue()

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

Sets the heap value.

Definition at line 66 of file WEMPrimitive.h.

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

◆ setTraversed()

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

Sets the traversed flag.

◆ unsetFlag()

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

Unsets the given bit-flag.

Definition at line 50 of file WEMPrimitive.h.

Member Data Documentation

◆ _bitFlag

unsigned int ml::WEMPrimitive::_bitFlag
protected

Bit-wise flag for custom use.

Definition at line 71 of file WEMPrimitive.h.

◆ _entryNumber

int ml::WEMPrimitive::_entryNumber
protected

Entry number in index vector, for easy deletion and reference.

Definition at line 73 of file WEMPrimitive.h.

◆ _heapPosition

int ml::WEMPrimitive::_heapPosition
protected

Heap position, same like entryNumber but for heaps.

Definition at line 75 of file WEMPrimitive.h.

◆ _heapValue

double ml::WEMPrimitive::_heapValue
protected

Element value, used for heap sorting.

Definition at line 77 of file WEMPrimitive.h.


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