MeVisLabToolboxReference
ml::WEMNode Class Reference

Defines the mesh component: node. More...

#include <WEMNode.h>

Inheritance diagram for ml::WEMNode:
ml::WEMPrimitive

List of all members.

Public Member Functions

 WEMNode ()
 Standard constructor.
 WEMNode (const WEMNode &n)
 Copy constructor.
virtual ~WEMNode ()
 Standard destructor.
void clone (WEMNode *n)
 Clones given node.
Vector3 getPosition () const
 Returns the world position.
void getPosition (double &x, double &y, double &z) const
 Returns the world position.
void setPosition (const Vector3 &position)
 Sets the position in world coordinates.
void setPosition (double x, double y, double z)
 Sets the position in world coordinates.
void translate (const Vector3 &offset)
 Translates the position by the given vector.
void applyMatrix (Matrix4 transformMatrix)
 Multiplies the node's position with the given transformation matrix.
void scale (const Vector3 &scaleFactor)
 Scales the position by given vector.
unsigned int getFaceValence () const
 Returns the face valence of node. The valence denotes the number of attached faces.
unsigned int getEdgeValence () const
 Returns the edge valence of node. The valence denotes the number of attached edges.
Vector4 getColor () const
 Returns the color of the node.
void setColor (const Vector4 &color)
 Returns the color of the node.
void setColor (float r, float g, float b)
 Sets the RGB color of the node.
void setColor (float a)
 Sets the alpha color of the node.
Vector3 getNormal () const
 Returns the normal of the node.
void setNormal (const Vector3 &normal)
 Sets the normal of the node.
void setNormal (float x, float y, float z)
 Sets the normal of the node.
void computeNormal ()
 Computes the normal of the node.
WEMFacegetFaceAt (unsigned int index)
 Returns the face at the given index.
const WEMFacegetFaceAt (unsigned int index) const
 Returns the face at the given index.
WEMTrianglegetTriangleAt (unsigned int index)
 Returns the face at the given index and casts it to WEMTriangle.
const WEMTrianglegetTriangleAt (unsigned int index) const
 Returns the face at the given index and casts it to WEMTriangle.
WEMQuadgetQuadAt (unsigned int index)
 Returns the face at the given index and casts it to WEMQuad.
const WEMQuadgetQuadAt (unsigned int index) const
 Returns the face at the given index and casts it to WEMQuad.
WEMPolygongetPolygonAt (unsigned int index)
 Returns the face at the given index and casts it to WEMPolygon.
const WEMPolygongetPolygonAt (unsigned int index) const
 Returns the face at the given index and casts it to WEMPolygon.
void addFace (WEMFace *face)
 Adds the given face.
void remove (WEMFace *face)
 Removes the given face.
WEMEdgegetEdgeAt (unsigned int index)
 Returns the edge at the given index.
const WEMEdgegetEdgeAt (unsigned int index) const
 Returns the edge at the given index.
void addEdge (WEMEdge *edge)
 Adds the edge.
void remove (WEMEdge *edge)
 Removes the given edge.
WEMEdgegetEdgeWith (WEMNode *node)
 Returns the edge shared with the given node.
const WEMEdgegetEdgeWith (WEMNode *node) const
 Returns the edge shared with the given node.
bool isBoundary () const
 Returns whether the node has any edge which is a boundary edge.
void replace (WEMEdge *orig, WEMEdge *replacement)
 Replaces an edge orig in the internal edge's vector by another edge replace.
void replace (WEMFace *orig, WEMFace *replacement)
 Replaces a face orig in the internal face's vector by another face replace.
void removeEdges ()
 Removes all edges attached to this node.
void removeFaces ()
 Removes all faces attached to this node.
double getLargestDihedralAngle () const
 Returns the largest angle between the node normal and any incident face's normal.
double getPrimitiveValue (const WEMPrimitiveValueList *valueList) const
 Returns the node value from the given primitive value list.
Deprecated
void getPosition (float &x, float &y, float &z)

Detailed Description

Defines the mesh component: node.

Definition at line 29 of file WEMNode.h.


Constructor & Destructor Documentation

ml::WEMNode::WEMNode ( )

Standard constructor.

ml::WEMNode::WEMNode ( const WEMNode n)

Copy constructor.

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

Standard destructor.


Member Function Documentation

void ml::WEMNode::addEdge ( WEMEdge edge) [inline]

Adds the edge.

Definition at line 118 of file WEMNode.h.

void ml::WEMNode::addFace ( WEMFace face) [inline]

Adds the given face.

Definition at line 110 of file WEMNode.h.

void ml::WEMNode::applyMatrix ( Matrix4  transformMatrix)

Multiplies the node's position with the given transformation matrix.

void ml::WEMNode::clone ( WEMNode n)

Clones given node.

void ml::WEMNode::computeNormal ( )

Computes the normal of the node.

Vector4 ml::WEMNode::getColor ( ) const [inline]

Returns the color of the node.

Definition at line 78 of file WEMNode.h.

WEMEdge* ml::WEMNode::getEdgeAt ( unsigned int  index) [inline]

Returns the edge at the given index.

Definition at line 114 of file WEMNode.h.

const WEMEdge* ml::WEMNode::getEdgeAt ( unsigned int  index) const [inline]

Returns the edge at the given index.

Definition at line 116 of file WEMNode.h.

References getEdgeAt().

Referenced by getEdgeAt().

unsigned int ml::WEMNode::getEdgeValence ( ) const [inline]

Returns the edge valence of node. The valence denotes the number of attached edges.

Definition at line 76 of file WEMNode.h.

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

Returns the edge shared with the given node.

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

Returns the edge shared with the given node.

Definition at line 124 of file WEMNode.h.

References getEdgeWith().

Referenced by getEdgeWith().

WEMFace* ml::WEMNode::getFaceAt ( unsigned int  index) [inline]

Returns the face at the given index.

Definition at line 94 of file WEMNode.h.

const WEMFace* ml::WEMNode::getFaceAt ( unsigned int  index) const [inline]

Returns the face at the given index.

Definition at line 96 of file WEMNode.h.

References getFaceAt().

Referenced by getFaceAt().

unsigned int ml::WEMNode::getFaceValence ( ) const [inline]

Returns the face valence of node. The valence denotes the number of attached faces.

Definition at line 74 of file WEMNode.h.

double ml::WEMNode::getLargestDihedralAngle ( ) const

Returns the largest angle between the node normal and any incident face's normal.

Vector3 ml::WEMNode::getNormal ( ) const [inline]

Returns the normal of the node.

Definition at line 86 of file WEMNode.h.

WEMPolygon* ml::WEMNode::getPolygonAt ( unsigned int  index) [inline]

Returns the face at the given index and casts it to WEMPolygon.

Definition at line 106 of file WEMNode.h.

const WEMPolygon* ml::WEMNode::getPolygonAt ( unsigned int  index) const [inline]

Returns the face at the given index and casts it to WEMPolygon.

Definition at line 108 of file WEMNode.h.

References getPolygonAt().

Referenced by getPolygonAt().

Vector3 ml::WEMNode::getPosition ( ) const [inline]

Returns the world position.

Definition at line 44 of file WEMNode.h.

void ml::WEMNode::getPosition ( float &  x,
float &  y,
float &  z 
) [inline]
Deprecated:
Returns the position as float values (legacy support).

Use getPosition(double& x, double& y, double& z).

Definition at line 54 of file WEMNode.h.

void ml::WEMNode::getPosition ( double &  x,
double &  y,
double &  z 
) const [inline]

Returns the world position.

Definition at line 46 of file WEMNode.h.

double ml::WEMNode::getPrimitiveValue ( const WEMPrimitiveValueList valueList) const

Returns the node value from the given primitive value list.

Averages over all edges/faces when the given primitive value list is not of the node type.

WEMQuad* ml::WEMNode::getQuadAt ( unsigned int  index) [inline]

Returns the face at the given index and casts it to WEMQuad.

Definition at line 102 of file WEMNode.h.

const WEMQuad* ml::WEMNode::getQuadAt ( unsigned int  index) const [inline]

Returns the face at the given index and casts it to WEMQuad.

Definition at line 104 of file WEMNode.h.

References getQuadAt().

Referenced by getQuadAt().

WEMTriangle* ml::WEMNode::getTriangleAt ( unsigned int  index) [inline]

Returns the face at the given index and casts it to WEMTriangle.

Definition at line 98 of file WEMNode.h.

const WEMTriangle* ml::WEMNode::getTriangleAt ( unsigned int  index) const [inline]

Returns the face at the given index and casts it to WEMTriangle.

Definition at line 100 of file WEMNode.h.

References getTriangleAt().

Referenced by getTriangleAt().

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

Returns whether the node has any edge which is a boundary edge.

Definition at line 126 of file WEMNode.h.

void ml::WEMNode::remove ( WEMEdge edge)

Removes the given edge.

void ml::WEMNode::remove ( WEMFace face)

Removes the given face.

void ml::WEMNode::removeEdges ( ) [inline]

Removes all edges attached to this node.

Definition at line 132 of file WEMNode.h.

void ml::WEMNode::removeFaces ( ) [inline]

Removes all faces attached to this node.

Definition at line 134 of file WEMNode.h.

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

Replaces a face orig in the internal face's vector by another face replace.

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

Replaces an edge orig in the internal edge's vector by another edge replace.

void ml::WEMNode::scale ( const Vector3 scaleFactor) [inline]

Scales the position by given vector.

Definition at line 72 of file WEMNode.h.

void ml::WEMNode::setColor ( float  r,
float  g,
float  b 
) [inline]

Sets the RGB color of the node.

Definition at line 82 of file WEMNode.h.

void ml::WEMNode::setColor ( const Vector4 color) [inline]

Returns the color of the node.

Definition at line 80 of file WEMNode.h.

void ml::WEMNode::setColor ( float  a) [inline]

Sets the alpha color of the node.

Definition at line 84 of file WEMNode.h.

void ml::WEMNode::setNormal ( const Vector3 normal) [inline]

Sets the normal of the node.

Definition at line 88 of file WEMNode.h.

void ml::WEMNode::setNormal ( float  x,
float  y,
float  z 
) [inline]

Sets the normal of the node.

Definition at line 90 of file WEMNode.h.

void ml::WEMNode::setPosition ( double  x,
double  y,
double  z 
) [inline]

Sets the position in world coordinates.

Definition at line 66 of file WEMNode.h.

void ml::WEMNode::setPosition ( const Vector3 position) [inline]

Sets the position in world coordinates.

Definition at line 64 of file WEMNode.h.

void ml::WEMNode::translate ( const Vector3 offset) [inline]

Translates the position by the given vector.

Definition at line 68 of file WEMNode.h.


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