|
MeVisLab Toolbox Reference
|
Defines the mesh component: edge. More...
#include <WEMEdge.h>
Public Member Functions | |
| WEMEdge () | |
| Standard constructor. | |
| WEMEdge (const WEMEdge &e) | |
| Copy constructor. | |
| WEMEdge (WEMEdge &&e) noexcept | |
| WEMEdge & | operator= (WEMEdge &&e) noexcept |
| ~WEMEdge () override | |
| Standard destructor. | |
| void | reset () |
| Resets the object to default constructed state. | |
| void | clone (WEMEdge *e) |
| Clones given edge. | |
| WEMNode * | getHead () |
| Returns head node. | |
| const WEMNode * | getHead () const |
| Returns head node. | |
| void | setHead (WEMNode *head) |
| Sets head node. | |
| WEMNode * | getTail () |
| Returns tail node. | |
| const WEMNode * | getTail () const |
| Returns tail node. | |
| void | setTail (WEMNode *tail) |
| Sets tail node. | |
| WEMFace * | getLFace () |
| Returns left face. | |
| const WEMFace * | getLFace () const |
| Returns left face. | |
| void | setLFace (WEMFace *lFace) |
| Sets left face. | |
| WEMFace * | getRFace () |
| Returns right face. | |
| const WEMFace * | getRFace () const |
| Returns right face. | |
| void | setRFace (WEMFace *rFace) |
| Sets right face. | |
| WEMTriangle * | getLTriangle () |
| Returns left face as triangle. | |
| const WEMTriangle * | getLTriangle () const |
| Returns left face as triangle. | |
| WEMTriangle * | getRTriangle () |
| Returns right face as triangle. | |
| const WEMTriangle * | getRTriangle () const |
| Returns right face as triangle. | |
| WEMTriangle * | getOther (WEMTriangle *triangle) |
| Returns other face. | |
| const WEMTriangle * | getOther (WEMTriangle *triangle) const |
| Returns other face. | |
| WEMEdge * | getLPred () |
| Returns lPred. | |
| const WEMEdge * | getLPred () const |
| Returns lPred. | |
| void | setLPred (WEMEdge *lPred) |
| Sets lPred. | |
| WEMEdge * | getLSucc () |
| Returns lSucc. | |
| const WEMEdge * | getLSucc () const |
| Returns lSucc. | |
| void | setLSucc (WEMEdge *lSucc) |
| Sets lSucc. | |
| WEMEdge * | getRPred () |
| Returns rPred. | |
| const WEMEdge * | getRPred () const |
| Returns rPred. | |
| void | setRPred (WEMEdge *rPred) |
| Sets rPred. | |
| WEMEdge * | getRSucc () |
| Returns rSucc. | |
| const WEMEdge * | getRSucc () const |
| Returns rSucc. | |
| void | setRSucc (WEMEdge *rSucc) |
| Sets rSucc. | |
| double | getLength () const |
| Computes the length of edge. | |
| bool | contains (WEMNode *node) const |
| Returns whether this edges contains the given node. | |
| WEMNode * | getOther (WEMNode *node) |
| Returns other node. | |
| const WEMNode * | getOther (WEMNode *node) const |
| Returns other node. | |
| WEMFace * | getOther (WEMFace *face) |
| Returns other face. | |
| const WEMFace * | getOther (WEMFace *face) const |
| Returns other face. | |
| bool | isBoundary () const |
| Returns whether this is edge is a boundary edge. | |
| void | replace (WEMEdge *orig, WEMEdge *replacement) |
Replaces the pointer orig by replacement to an edge. | |
| void | replace (WEMNode *orig, WEMNode *replacement) |
Replaces the pointer orig by replacement to a node. | |
| void | replace (WEMFace *orig, WEMFace *replacement) |
Replaces the pointer orig by replacement to a face. | |
| double | getDihedralAngle () const |
| Computes and returns the edge's dihedral angle. | |
| double | getDotAngle () const |
| Calculates angle between two incident faces. | |
Public Member Functions inherited from ml::WEMPrimitive | |
| 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. | |
Additional Inherited Members | |
Protected Attributes inherited from ml::WEMPrimitive | |
| 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. | |
| ml::WEMEdge::WEMEdge | ( | ) |
Standard constructor.
|
noexcept |
|
override |
Standard destructor.
Returns whether this edges contains the given node.
| double ml::WEMEdge::getDihedralAngle | ( | ) | const |
Computes and returns the edge's dihedral angle.
That is the angle between its incident faces. The returned angle value is expressed in radians.
| double ml::WEMEdge::getDotAngle | ( | ) | const |
Calculates angle between two incident faces.
Only return dot product result for speed.
|
inline |
| double ml::WEMEdge::getLength | ( | ) | const |
Computes the length of edge.
|
inline |
|
inline |
|
inline |
| WEMTriangle * ml::WEMEdge::getOther | ( | WEMTriangle * | triangle | ) |
Returns other face.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Replaces the pointer orig by replacement to an edge.
Replaces the pointer orig by replacement to a face.
Replaces the pointer orig by replacement to a node.
| void ml::WEMEdge::reset | ( | ) |
Resets the object to default constructed state.