|
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 |
| 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 | ( | ) |
Referenced by operator=(), operator=(), WEMPrimitive(), and WEMPrimitive().
|
default |
References WEMPrimitive().
|
noexcept |
References WEMPrimitive().
|
virtualdefault |
Standard destructor.
|
inline |
|
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.
References _entryNumber.
|
inline |
Returns the heap position.
Definition at line 58 of file WEMPrimitive.h.
References _heapPosition.
Referenced by ml::WEMContainer< T >::append(), ml::WEMHeap< T >::insert(), ml::WEMHeap< T >::insert(), ml::WEMContainer< T >::remove(), ml::WEMHeap< T >::remove(), and ml::WEMHeap< T >::update().
|
inline |
Returns the heap value.
Definition at line 64 of file WEMPrimitive.h.
References _heapValue.
Referenced by ml::WEMHeap< T >::update().
|
inline |
Returns whether this primitive is in the heap.
Definition at line 60 of file WEMPrimitive.h.
References _heapPosition.
|
inline |
Returns whether the bit-flag is set.
Definition at line 46 of file WEMPrimitive.h.
References _bitFlag.
|
inline |
Returns whether this primitive has been traversed.
Definition at line 54 of file WEMPrimitive.h.
References _bitFlag, and WEM_TRAVERSED_BIT.
|
default |
References WEMPrimitive().
|
noexcept |
References WEMPrimitive().
| void ml::WEMPrimitive::resetPrimitive | ( | ) |
Resets the object to its default constructed state.
|
inline |
|
inline |
|
inline |
Sets the heap position.
Definition at line 62 of file WEMPrimitive.h.
References _heapPosition.
Referenced by ml::WEMHeap< T >::remove(), and ml::WEMContainer< T >::replace().
|
inline |
Sets the heap value.
Definition at line 66 of file WEMPrimitive.h.
References _heapValue.
Referenced by ml::WEMHeap< T >::insert(), and ml::WEMHeap< T >::update().
| void ml::WEMPrimitive::setTraversed | ( | bool | traversed | ) |
Sets the traversed flag.
|
inline |
|
protected |
Bit-wise flag for custom use.
Definition at line 71 of file WEMPrimitive.h.
Referenced by clearFlag(), isSet(), isTraversed(), setFlag(), and unsetFlag().
|
protected |
Entry number in index vector, for easy deletion and reference.
Definition at line 73 of file WEMPrimitive.h.
Referenced by getEntryNumber(), and setEntryNumber().
|
protected |
Heap position, same like entryNumber but for heaps.
Definition at line 75 of file WEMPrimitive.h.
Referenced by getHeapPosition(), inHeap(), and setHeapPosition().
|
protected |
Element value, used for heap sorting.
Definition at line 77 of file WEMPrimitive.h.
Referenced by getHeapValue(), and setHeapValue().