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)
 Clone given node.
Vector3 getPosition () const
 Get position.
void getPosition (double &x, double &y, double &z) const
 Get position.
void setPosition (const Vector3 &position)
 Set position.
void setPosition (double x, double y, double z)
 Set position.
void translate (Vector3 offset)
 Translate the position by 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 short getFaceValence () const
 Get face valence of node. The valence denotes the number of attached faces.
unsigned short getEdgeValence () const
 Get edge valence of node. The valence denotes the number of attached edges.
Vector4 getColor () const
 Get color of the node.
void setColor (Vector4 color)
 Set color of the node.
void setColor (float r, float g, float b)
 Set RGB color of the node.
void setColor (float a)
 Set alpha color of the node.
Vector3 getNormal () const
 Get normal of the node.
void setNormal (const Vector3 &normal)
 Set normal of the node.
void setNormal (float x, float y, float z)
 Set normal.
void computeNormal ()
 Compute normal of the node.
WEMFacegetFaceAt (unsigned int index)
 Get face at given index.
const WEMFacegetFaceAt (unsigned int index) const
 Get face at given index.
WEMTrianglegetTriangleAt (unsigned int index)
 Get face at given index and cast to WEMTriangle.
const WEMTrianglegetTriangleAt (unsigned int index) const
 Get face at given index and cast to WEMTriangle.
WEMQuadgetQuadAt (unsigned int index)
 Get face at given index and cast to WEMQuad.
const WEMQuadgetQuadAt (unsigned int index) const
 Get face at given index and cast to WEMQuad.
WEMPolygongetPolygonAt (unsigned int index)
 Get face at given index and cast to WEMPolygon.
const WEMPolygongetPolygonAt (unsigned int index) const
 Get face at given index and cast to WEMPolygon.
void addFace (WEMFace *face)
 Add face.
void remove (WEMFace *face)
 Remove given face.
WEMEdgegetEdgeAt (unsigned int index)
 Get edge at given index.
const WEMEdgegetEdgeAt (unsigned int index) const
 Get edge at given index.
void addEdge (WEMEdge *edge)
 Add edge.
void remove (WEMEdge *edge)
 Remove given edge.
WEMEdgegetEdgeWith (WEMNode *node)
 Get edge shared with given node.
const WEMEdgegetEdgeWith (WEMNode *node) const
 Get edge shared with given node.
bool isBoundary () const
 Returns true if node has any edge which is boundary.
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 ()
 Remove all edges attached to this node.
void removeFaces ()
 Remove 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
 Get node value from given primitive value list.
Deprecated
void getPosition (float &x, float &y, float &z)


Detailed Description

Defines the mesh component: node.

Definition at line 27 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]

Add edge.

Definition at line 116 of file WEMNode.h.

References WEM_MAX_VALENCE, and WEM_PRINT.

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

Add face.

Definition at line 108 of file WEMNode.h.

References WEM_MAX_VALENCE, and WEM_PRINT.

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

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

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

Clone given node.

void ml::WEMNode::computeNormal (  ) 

Compute normal of the node.

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

Get color of the node.

Definition at line 76 of file WEMNode.h.

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

Get edge at given index.

Definition at line 114 of file WEMNode.h.

References getEdgeAt().

Referenced by getEdgeAt().

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

Get edge at given index.

Definition at line 112 of file WEMNode.h.

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

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

Definition at line 74 of file WEMNode.h.

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

Get edge shared with given node.

Definition at line 122 of file WEMNode.h.

References getEdgeWith().

Referenced by getEdgeWith().

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

Get edge shared with given node.

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

Get face at given index.

Definition at line 94 of file WEMNode.h.

References getFaceAt().

Referenced by getFaceAt().

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

Get face at given index.

Definition at line 92 of file WEMNode.h.

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

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

Definition at line 72 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]

Get normal of the node.

Definition at line 84 of file WEMNode.h.

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

Get face at given index and cast to WEMPolygon.

Definition at line 106 of file WEMNode.h.

References getPolygonAt().

Referenced by getPolygonAt().

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

Get face at given index and cast to WEMPolygon.

Definition at line 104 of file WEMNode.h.

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

Deprecated:
Get position as float values (legacy support). Use getPosition(double& x, double& y, double& z).

Definition at line 52 of file WEMNode.h.

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

Get position.

Definition at line 44 of file WEMNode.h.

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

Get position.

Definition at line 42 of file WEMNode.h.

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

Get node value from given primitive value list.

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

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

Get face at given index and cast to WEMQuad.

Definition at line 102 of file WEMNode.h.

References getQuadAt().

Referenced by getQuadAt().

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

Get face at given index and cast to WEMQuad.

Definition at line 100 of file WEMNode.h.

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

Get face at given index and cast to WEMTriangle.

Definition at line 98 of file WEMNode.h.

References getTriangleAt().

Referenced by getTriangleAt().

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

Get face at given index and cast to WEMTriangle.

Definition at line 96 of file WEMNode.h.

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

Returns true if node has any edge which is boundary.

Definition at line 124 of file WEMNode.h.

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

Remove given edge.

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

Remove given face.

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

Remove all edges attached to this node.

Definition at line 130 of file WEMNode.h.

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

Remove all faces attached to this node.

Definition at line 132 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 70 of file WEMNode.h.

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

Set alpha color of the node.

Definition at line 82 of file WEMNode.h.

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

Set RGB color of the node.

Definition at line 80 of file WEMNode.h.

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

Set color of the node.

Definition at line 78 of file WEMNode.h.

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

Set normal.

Definition at line 88 of file WEMNode.h.

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

Set normal of the node.

Definition at line 86 of file WEMNode.h.

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

Set position.

Definition at line 64 of file WEMNode.h.

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

Set position.

Definition at line 62 of file WEMNode.h.

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

Translate the position by given vector.

Definition at line 66 of file WEMNode.h.


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

Generated on Sat Sep 3 18:39:41 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8