#include <WEMNode.h>

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. | |
| WEMFace * | getFaceAt (unsigned int index) |
| Get face at given index. | |
| const WEMFace * | getFaceAt (unsigned int index) const |
| Get face at given index. | |
| WEMTriangle * | getTriangleAt (unsigned int index) |
| Get face at given index and cast to WEMTriangle. | |
| const WEMTriangle * | getTriangleAt (unsigned int index) const |
| Get face at given index and cast to WEMTriangle. | |
| WEMQuad * | getQuadAt (unsigned int index) |
| Get face at given index and cast to WEMQuad. | |
| const WEMQuad * | getQuadAt (unsigned int index) const |
| Get face at given index and cast to WEMQuad. | |
| WEMPolygon * | getPolygonAt (unsigned int index) |
| Get face at given index and cast to WEMPolygon. | |
| const WEMPolygon * | getPolygonAt (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. | |
| WEMEdge * | getEdgeAt (unsigned int index) |
| Get edge at given index. | |
| const WEMEdge * | getEdgeAt (unsigned int index) const |
| Get edge at given index. | |
| void | addEdge (WEMEdge *edge) |
| Add edge. | |
| void | remove (WEMEdge *edge) |
| Remove given edge. | |
| WEMEdge * | getEdgeWith (WEMNode *node) |
| Get edge shared with given node. | |
| const WEMEdge * | getEdgeWith (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) |
Definition at line 27 of file WEMNode.h.
| ml::WEMNode::WEMNode | ( | ) |
Standard constructor.
| ml::WEMNode::WEMNode | ( | const WEMNode & | n | ) |
Copy constructor.
| virtual ml::WEMNode::~WEMNode | ( | ) | [virtual] |
Standard destructor.
| void ml::WEMNode::addEdge | ( | WEMEdge * | edge | ) | [inline] |
| void ml::WEMNode::addFace | ( | WEMFace * | face | ) | [inline] |
| 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] |
| 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] |
| unsigned short ml::WEMNode::getEdgeValence | ( | ) | const [inline] |
Get edge shared with given node.
Definition at line 122 of file WEMNode.h.
References getEdgeWith().
Referenced by getEdgeWith().
| 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] |
| unsigned short ml::WEMNode::getFaceValence | ( | ) | const [inline] |
| 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] |
| 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] |
| void ml::WEMNode::getPosition | ( | float & | x, | |
| float & | y, | |||
| float & | z | |||
| ) | [inline] |
| void ml::WEMNode::getPosition | ( | double & | x, | |
| double & | y, | |||
| double & | z | |||
| ) | const [inline] |
| Vector3 ml::WEMNode::getPosition | ( | ) | const [inline] |
| 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] |
| 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] |
| bool ml::WEMNode::isBoundary | ( | ) | const [inline] |
| void ml::WEMNode::remove | ( | WEMEdge * | edge | ) |
Remove given edge.
| void ml::WEMNode::remove | ( | WEMFace * | face | ) |
Remove given face.
| void ml::WEMNode::removeEdges | ( | ) | [inline] |
| void ml::WEMNode::removeFaces | ( | ) | [inline] |
Replaces a face orig in the internal face's vector by another face replace.
Replaces an edge orig in the internal edge's vector by another edge replace.
| void ml::WEMNode::scale | ( | const Vector3 & | scaleFactor | ) | [inline] |
| void ml::WEMNode::setColor | ( | float | a | ) | [inline] |
| void ml::WEMNode::setColor | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) | [inline] |
| void ml::WEMNode::setColor | ( | Vector4 | color | ) | [inline] |
| void ml::WEMNode::setNormal | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) | [inline] |
| void ml::WEMNode::setNormal | ( | const Vector3 & | normal | ) | [inline] |
| void ml::WEMNode::setPosition | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [inline] |
| void ml::WEMNode::setPosition | ( | const Vector3 & | position | ) | [inline] |
| void ml::WEMNode::translate | ( | Vector3 | offset | ) | [inline] |
1.5.8