Graph node class.
More...
#include <GraphNode.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
[in] | sName | Element name to set |
[in] | pManager | Element manager using this element, can be a null pointer |
Constructor.
- Parameters:
-
[in] | cSource | Node to copy from |
Member Function Documentation
Returns the number of neighbours.
- Returns:
- Number of neighbours
Clears all neighbour connectivity.
Returns whether a node is a neighbour of this node or not.
- Parameters:
-
- Returns:
- 'true' if the given node is a neighbour of this node, else 'false'
Returns a neighbour.
- Parameters:
-
[in] | nNeighbour | Neighbour index |
- Returns:
- Requested neighbour node, a null pointer on error
Returns a neighbour.
- Parameters:
-
[in] | nNeighbour | Neighbour index |
- Returns:
- Requested neighbour node, a null pointer on error
Returns the distance to a neighbour.
- Parameters:
-
[in] | nNeighbour | Neighbour index |
- Returns:
- Requested distance to a neighbour node, -1 on error
- Note:
- By default the neighbour distance from AddNeighbour() is set, if SetPos() is called the neighbour distances are updated automatically.
Adds a neighbour connection.
- Parameters:
-
[in] | cNode | Neighbour node to add |
[in] | fDistance | Distance to the neighbour node, if negative the distance is calculated automatically using the current node positions. (see GetPos()) |
- Returns:
- 'true' if all went fine, else 'false' (maybe this node is already a neighbour)
Removes a neighbour connection.
- Parameters:
-
[in] | cNode | Neighbour node to remove |
- Returns:
- 'true' if all went fine, else 'false'
Removes a neighbour connection at the given index.
- Parameters:
-
[in] | nNeighbour | Neighbour index |
- Returns:
- 'true' if all went fine, else 'false'
Returns the node position.
- Returns:
- Node position
Sets the node position.
- Parameters:
-
Sets the node position.
- Parameters:
-
[in] | fX | X component of the node position |
[in] | fY | Y component of the node position |
[in] | fZ | Z component of the node position |
Returns the distance between two graph nodes.
- Parameters:
-
- Returns:
- The positions (see GetPos()) are used to calculate the distance
virtual PLMATH_API GraphNode& PLMath::GraphNode::operator= |
( |
const GraphNode & |
cSource | ) |
[virtual] |
The documentation for this class was generated from the following file: