MeVisLabToolboxReference
ml::WEMEdge Class Reference

Defines the mesh component: edge. More...

#include <WEMEdge.h>

Inheritance diagram for ml::WEMEdge:
ml::WEMPrimitive

List of all members.

Public Member Functions

 WEMEdge ()
 Standard constructor.
 WEMEdge (const WEMEdge &e)
 Copy constructor.
virtual ~WEMEdge ()
 Standard destructor.
void clone (WEMEdge *e)
 Clones given edge.
WEMNodegetHead ()
 Returns head node.
const WEMNodegetHead () const
 Returns head node.
void setHead (WEMNode *head)
 Sets head node.
WEMNodegetTail ()
 Returns tail node.
const WEMNodegetTail () const
 Returns tail node.
void setTail (WEMNode *tail)
 Sets tail node.
WEMFacegetLFace ()
 Returns left face.
const WEMFacegetLFace () const
 Returns left face.
void setLFace (WEMFace *lFace)
 Sets left face.
WEMFacegetRFace ()
 Returns right face.
const WEMFacegetRFace () const
 Returns right face.
void setRFace (WEMFace *rFace)
 Sets right face.
WEMTrianglegetLTriangle ()
 Returns left face as triangle.
const WEMTrianglegetLTriangle () const
 Returns left face as triangle.
WEMTrianglegetRTriangle ()
 Returns right face as triangle.
const WEMTrianglegetRTriangle () const
 Returns right face as triangle.
WEMTrianglegetOther (WEMTriangle *triangle)
 Returns other face.
const WEMTrianglegetOther (WEMTriangle *triangle) const
 Returns other face.
WEMEdgegetLPred ()
 Returns lPred.
const WEMEdgegetLPred () const
 Returns lPred.
void setLPred (WEMEdge *lPred)
 Sets lPred.
WEMEdgegetLSucc ()
 Returns lSucc.
const WEMEdgegetLSucc () const
 Returns lSucc.
void setLSucc (WEMEdge *lSucc)
 Sets lSucc.
WEMEdgegetRPred ()
 Returns rPred.
const WEMEdgegetRPred () const
 Returns rPred.
void setRPred (WEMEdge *rPred)
 Sets rPred.
WEMEdgegetRSucc ()
 Returns rSucc.
const WEMEdgegetRSucc () 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.
WEMNodegetOther (WEMNode *node)
 Returns other node.
const WEMNodegetOther (WEMNode *node) const
 Returns other node.
WEMFacegetOther (WEMFace *face)
 Returns other face.
const WEMFacegetOther (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 Only return dot product result for speed.

Detailed Description

Defines the mesh component: edge.

Definition at line 24 of file WEMEdge.h.


Constructor & Destructor Documentation

ml::WEMEdge::WEMEdge ( )

Standard constructor.

ml::WEMEdge::WEMEdge ( const WEMEdge e)

Copy constructor.

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

Standard destructor.


Member Function Documentation

void ml::WEMEdge::clone ( WEMEdge e)

Clones given edge.

bool ml::WEMEdge::contains ( WEMNode node) const

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 in measured in degrees.

double ml::WEMEdge::getDotAngle ( ) const

Calculates angle between two incident faces Only return dot product result for speed.

WEMNode* ml::WEMEdge::getHead ( ) [inline]

Returns head node.

Definition at line 41 of file WEMEdge.h.

const WEMNode* ml::WEMEdge::getHead ( ) const [inline]

Returns head node.

Definition at line 43 of file WEMEdge.h.

References getHead().

Referenced by getHead().

double ml::WEMEdge::getLength ( ) const

Computes the length of edge.

WEMFace* ml::WEMEdge::getLFace ( ) [inline]

Returns left face.

Definition at line 53 of file WEMEdge.h.

const WEMFace* ml::WEMEdge::getLFace ( ) const [inline]

Returns left face.

Definition at line 55 of file WEMEdge.h.

References getLFace().

Referenced by getLFace().

const WEMEdge* ml::WEMEdge::getLPred ( ) const [inline]

Returns lPred.

Definition at line 81 of file WEMEdge.h.

References getLPred().

Referenced by getLPred().

WEMEdge* ml::WEMEdge::getLPred ( ) [inline]

Returns lPred.

Definition at line 79 of file WEMEdge.h.

WEMEdge* ml::WEMEdge::getLSucc ( ) [inline]

Returns lSucc.

Definition at line 85 of file WEMEdge.h.

const WEMEdge* ml::WEMEdge::getLSucc ( ) const [inline]

Returns lSucc.

Definition at line 87 of file WEMEdge.h.

References getLSucc().

Referenced by getLSucc().

WEMTriangle* ml::WEMEdge::getLTriangle ( ) [inline]

Returns left face as triangle.

Definition at line 65 of file WEMEdge.h.

const WEMTriangle* ml::WEMEdge::getLTriangle ( ) const [inline]

Returns left face as triangle.

Definition at line 67 of file WEMEdge.h.

References getLTriangle().

Referenced by getLTriangle().

const WEMFace* ml::WEMEdge::getOther ( WEMFace face) const [inline]

Returns other face.

Definition at line 114 of file WEMEdge.h.

References getOther().

Referenced by getOther().

WEMNode* ml::WEMEdge::getOther ( WEMNode node)

Returns other node.

const WEMNode* ml::WEMEdge::getOther ( WEMNode node) const [inline]

Returns other node.

Definition at line 110 of file WEMEdge.h.

References getOther().

Referenced by getOther().

WEMTriangle* ml::WEMEdge::getOther ( WEMTriangle triangle)

Returns other face.

WEMFace* ml::WEMEdge::getOther ( WEMFace face)

Returns other face.

const WEMTriangle* ml::WEMEdge::getOther ( WEMTriangle triangle) const [inline]

Returns other face.

Definition at line 76 of file WEMEdge.h.

References getOther().

Referenced by getOther().

WEMFace* ml::WEMEdge::getRFace ( ) [inline]

Returns right face.

Definition at line 59 of file WEMEdge.h.

const WEMFace* ml::WEMEdge::getRFace ( ) const [inline]

Returns right face.

Definition at line 61 of file WEMEdge.h.

References getRFace().

Referenced by getRFace().

WEMEdge* ml::WEMEdge::getRPred ( ) [inline]

Returns rPred.

Definition at line 91 of file WEMEdge.h.

const WEMEdge* ml::WEMEdge::getRPred ( ) const [inline]

Returns rPred.

Definition at line 93 of file WEMEdge.h.

References getRPred().

Referenced by getRPred().

WEMEdge* ml::WEMEdge::getRSucc ( ) [inline]

Returns rSucc.

Definition at line 97 of file WEMEdge.h.

const WEMEdge* ml::WEMEdge::getRSucc ( ) const [inline]

Returns rSucc.

Definition at line 99 of file WEMEdge.h.

References getRSucc().

Referenced by getRSucc().

WEMTriangle* ml::WEMEdge::getRTriangle ( ) [inline]

Returns right face as triangle.

Definition at line 69 of file WEMEdge.h.

const WEMTriangle* ml::WEMEdge::getRTriangle ( ) const [inline]

Returns right face as triangle.

Definition at line 71 of file WEMEdge.h.

References getRTriangle().

Referenced by getRTriangle().

WEMNode* ml::WEMEdge::getTail ( ) [inline]

Returns tail node.

Definition at line 47 of file WEMEdge.h.

const WEMNode* ml::WEMEdge::getTail ( ) const [inline]

Returns tail node.

Definition at line 49 of file WEMEdge.h.

References getTail().

Referenced by getTail().

bool ml::WEMEdge::isBoundary ( ) const [inline]

Returns whether this is edge is a boundary edge.

A boundary edge has at least one adjacent face set to NULL.

Definition at line 117 of file WEMEdge.h.

void ml::WEMEdge::replace ( WEMFace orig,
WEMFace replacement 
)

Replaces the pointer orig by replacement to a face.

void ml::WEMEdge::replace ( WEMEdge orig,
WEMEdge replacement 
)

Replaces the pointer orig by replacement to an edge.

void ml::WEMEdge::replace ( WEMNode orig,
WEMNode replacement 
)

Replaces the pointer orig by replacement to a node.

void ml::WEMEdge::setHead ( WEMNode head) [inline]

Sets head node.

Definition at line 45 of file WEMEdge.h.

void ml::WEMEdge::setLFace ( WEMFace lFace) [inline]

Sets left face.

Definition at line 57 of file WEMEdge.h.

void ml::WEMEdge::setLPred ( WEMEdge lPred) [inline]

Sets lPred.

Definition at line 83 of file WEMEdge.h.

void ml::WEMEdge::setLSucc ( WEMEdge lSucc) [inline]

Sets lSucc.

Definition at line 89 of file WEMEdge.h.

void ml::WEMEdge::setRFace ( WEMFace rFace) [inline]

Sets right face.

Definition at line 63 of file WEMEdge.h.

void ml::WEMEdge::setRPred ( WEMEdge rPred) [inline]

Sets rPred.

Definition at line 95 of file WEMEdge.h.

void ml::WEMEdge::setRSucc ( WEMEdge rSucc) [inline]

Sets rSucc.

Definition at line 101 of file WEMEdge.h.

void ml::WEMEdge::setTail ( WEMNode tail) [inline]

Sets tail node.

Definition at line 51 of file WEMEdge.h.


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