Core shortest path class.
More...
#include <shortestpath.h>
|
| | ShortestPathVirtual (const Box2 &, int, int) |
| | Create the shortest path layout.
|
| |
|
void | EnableBridge (int, int, int) |
| | Enable bridges.
|
| |
|
void | EnableTunnel (int, int, int) |
| | Enable tunnels.
|
| |
|
void | EnableAngle (int) |
| | Enable angle.
|
| |
|
|
static int | callUpdateNodeSurface = 0 |
| | Number of calls to update.
|
| |
|
| int | Index (int, int, int) const |
| | Computes the memory index of a node characterized with its (x,y,a) coordinates.
|
| |
| int | Index (int, int) const |
| | Computes the memory index of a node characterized with its coordinates.
|
| |
|
|
int | nia |
| | Number of angle layers.
|
| |
|
int | m_uumask |
| | Size of the neighborhood mask.
|
| |
|
bool | m_bridge |
| | Bridge flag.
|
| |
|
bool | m_tunnel |
| | Tunnel flag.
|
| |
|
ScalarField2 | roadValue |
| | Roads.
|
| |
Core shortest path class.
◆ ShortestPathVirtual()
| ShortestPathVirtual::ShortestPathVirtual |
( |
const Box2 & | box, |
|
|
int | x, |
|
|
int | y ) |
Create the shortest path layout.
- Parameters
-
| box | Region that will be explored. |
| x,y | Size of the underlying grid. |
◆ Index() [1/2]
| int ShortestPathVirtual::Index |
( |
int | x, |
|
|
int | y ) const |
|
inlineprotected |
Computes the memory index of a node characterized with its coordinates.
- Parameters
-
| x,y | Coordinates on the map. |
◆ Index() [2/2]
| int ShortestPathVirtual::Index |
( |
int | x, |
|
|
int | y, |
|
|
int | a ) const |
|
inlineprotected |
Computes the memory index of a node characterized with its (x,y,a) coordinates.
Note that this function works even if only one angle layer exists.
- Parameters
-
| x,y | Coordinates on the map. |
| a | Angle layer |
The documentation for this class was generated from the following files:
- E:/X/Code/Libs/LibPath/LibPath/Include/shortestpath.h
- E:/X/Code/Libs/LibPath/LibPath/Source/shortest-path-virtual.cpp
- E:/X/Code/Libs/LibPath/LibPath/Source/shortest-path.cpp