MeVisLab Toolbox Reference
|
This is the base class for the WEM elements nodes, edges, and faces. More...
#include <WEMPrimitive.h>
Public Member Functions | |
WEMPrimitive () | |
WEMPrimitive (const WEMPrimitive &)=default | |
WEMPrimitive (WEMPrimitive &&p) noexcept | |
WEMPrimitive & | operator= (const WEMPrimitive &)=default |
WEMPrimitive & | operator= (WEMPrimitive &&p) noexcept |
virtual | ~WEMPrimitive ()=default |
Standard destructor. | |
void | resetPrimitive () |
Resets the object to its default constructed state. | |
int | getEntryNumber () const |
Returns the entry number. | |
void | setEntryNumber (int e) |
Sets the entry number. | |
bool | isSet (unsigned int bit) const |
Returns whether the bit-flag is set. | |
void | setFlag (unsigned int bit) |
Sets the given bit-flag. | |
void | unsetFlag (unsigned int bit) |
Unsets the given bit-flag. | |
void | clearFlag () |
Clears the bit-flag. | |
bool | isTraversed () const |
Returns whether this primitive has been traversed. | |
void | setTraversed (bool traversed) |
Sets the traversed flag. | |
int | getHeapPosition () const |
Returns the heap position. | |
bool | inHeap () const |
Returns whether this primitive is in the heap. | |
void | setHeapPosition (int heapPosition) |
Sets the heap position. | |
double | getHeapValue () const |
Returns the heap value. | |
void | setHeapValue (double heapValue) |
Sets the heap value. | |
Protected Attributes | |
unsigned int | _bitFlag |
Bit-wise flag for custom use. | |
int | _entryNumber |
Entry number in index vector, for easy deletion and reference. | |
int | _heapPosition |
Heap position, same like entryNumber but for heaps. | |
double | _heapValue |
Element value, used for heap sorting. | |
This is the base class for the WEM elements nodes, edges, and faces.
Definition at line 27 of file WEMPrimitive.h.
ml::WEMPrimitive::WEMPrimitive | ( | ) |
|
default |
|
noexcept |
|
virtualdefault |
Standard destructor.
|
inline |
Clears the bit-flag.
Definition at line 52 of file WEMPrimitive.h.
|
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.
|
inline |
Returns the heap position.
Definition at line 58 of file WEMPrimitive.h.
|
inline |
Returns the heap value.
Definition at line 64 of file WEMPrimitive.h.
|
inline |
Returns whether this primitive is in the heap.
Definition at line 60 of file WEMPrimitive.h.
Returns whether the bit-flag is set.
Definition at line 46 of file WEMPrimitive.h.
References mlrange_cast().
|
inline |
Returns whether this primitive has been traversed.
Definition at line 54 of file WEMPrimitive.h.
References WEM_TRAVERSED_BIT.
|
default |
|
noexcept |
void ml::WEMPrimitive::resetPrimitive | ( | ) |
Resets the object to its default constructed state.
Sets the entry number.
Definition at line 44 of file WEMPrimitive.h.
Sets the heap position.
Definition at line 62 of file WEMPrimitive.h.
Bit-wise flag for custom use.
Definition at line 71 of file WEMPrimitive.h.
|
protected |
Entry number in index vector, for easy deletion and reference.
Definition at line 73 of file WEMPrimitive.h.
|
protected |
Heap position, same like entryNumber but for heaps.
Definition at line 75 of file WEMPrimitive.h.
|
protected |
Element value, used for heap sorting.
Definition at line 77 of file WEMPrimitive.h.