#include <PointToPointPath.h>
- See also
- Class PointToPointPath
- Description:
- This class is used to compute the shortest path between 2 nodes in graph. You just describe the graph based on it connection data and then ask for the path between 2 nodes. ie the Dijkstra's algorithm
◆ PointToPointPath()
◆ ~PointToPointPath()
◆ Create()
◆ SetNumberNodes()
virtual void SetNumberNodes |
( |
int |
num | ) |
|
|
pure virtual |
◆ AddNode()
Adds a node to the graph /param index is the id of the node you are adding /param connectedEdges are all the edges that connect to the node.
◆ SetStartPoint()
virtual void SetStartPoint |
( |
int |
index | ) |
|
|
pure virtual |
Sets the start index of the path.
◆ SetEndPoint()
virtual void SetEndPoint |
( |
int |
index | ) |
|
|
pure virtual |
Sets the end index of the path, these 2 are separated since if you do not change the start path there are some optimizations that make it faster.
◆ GetPath()
◆ DeleteMe()
virtual void DeleteMe |
( |
| ) |
|
|
pure virtual |