Developer Documentation
|
#include <Plugin-VSI/scene/wayfind.hh>
Classes | |
class | Node |
Public Member Functions | |
WayFind (GraphicsScene *_scene) | |
Constructor. More... | |
~WayFind () | |
Destructor. More... | |
QPolygonF | findWay (Connection *_conn, QPoint _from, QPoint _to) |
Finds a way from _from to _to ignoring any already existent connections from _conn. More... | |
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 64 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 476 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 94 of file wayfind.cc.
|
private |
Definition at line 467 of file wayfind.cc.
|
private |
Definition at line 449 of file wayfind.cc.
|
private |
Definition at line 136 of file wayfind.hh.
|
private |
Definition at line 141 of file wayfind.hh.
|
private |
Definition at line 139 of file wayfind.hh.
|
private |
Definition at line 138 of file wayfind.hh.
|
private |
Definition at line 142 of file wayfind.hh.
|
private |
Definition at line 143 of file wayfind.hh.
|
private |
Definition at line 134 of file wayfind.hh.