|
Developer Documentation
|
#include <Plugin-VSI/scene/wayfind.hh>
Classes | |
| class | Node |
Public Member Functions | |
| WayFind (GraphicsScene *_scene) | |
| Constructor. | |
| ~WayFind () | |
| Destructor. | |
| QPolygonF | findWay (Connection *_conn, QPoint _from, QPoint _to) |
| Finds a way from _from to _to ignoring any already existent connections from _conn. | |
Private Member Functions | |
| QPoint | validPos (unsigned int _dir, int _step, QPoint _pnt) |
| int | heuristicDistance (const QPoint &_from, const QPoint &_to) const |
| void | cleanup () |
Private Attributes | |
| GraphicsScene * | scene_ |
| unsigned int | counter_ |
| std::list< Node * > | nodes_ |
| QHash< QPair< int, int >, Node * > | map_ |
| Node * | ll_ |
| QPoint | oldFrom_ |
| QRegion | oldReg_ |
A-Star way finding implementation with dynamic growing area
Definition at line 65 of file wayfind.hh.
|
explicit |
Constructor.
Definition at line 75 of file wayfind.cc.
| VSI::WayFind::~WayFind | ( | ) |
Destructor.
Definition at line 85 of file wayfind.cc.
|
private |
Definition at line 477 of file wayfind.cc.
| QPolygonF VSI::WayFind::findWay | ( | Connection * | _conn, |
| QPoint | _from, | ||
| QPoint | _to | ||
| ) |
Finds a way from _from to _to ignoring any already existent connections from _conn.
Definition at line 95 of file wayfind.cc.
|
private |
Definition at line 468 of file wayfind.cc.
|
private |
Definition at line 450 of file wayfind.cc.
|
private |
Definition at line 137 of file wayfind.hh.
|
private |
Definition at line 142 of file wayfind.hh.
|
private |
Definition at line 140 of file wayfind.hh.
|
private |
Definition at line 139 of file wayfind.hh.
|
private |
Definition at line 143 of file wayfind.hh.
|
private |
Definition at line 144 of file wayfind.hh.
|
private |
Definition at line 135 of file wayfind.hh.