Grid embedded roads. This describes the network.
More...
#include <grid.h>
|
| void | addRoad (const std::vector< std::vector< double > > &listOfCoordinates, long edgeId) |
| | Creates a new road and inserts it in m_road. More...
|
| |
| void | buildMarkovMatrix () |
| | buildMarkovMatrix More...
|
| |
| double | computeDistanceFraction (PointGPS *prevPoint, PointGPS *curPoint, long prevRoadId, long curRoadId) |
| |
| double | getDistanceBetweenProjections (Point *projR1, Point *projR2, Road *r1) |
| |
| double | getDistanceToExtremity (Point *projR1, int node, Road *r1) |
| |
| int | getNoOfPoints () const |
| |
| int | getNoOfRoads () const |
| | Getters. More...
|
| |
| std::vector< PointRoad > * | getPoints () |
| |
| std::vector< double > | getProjectedPointAndDistance (PointGPS *p, Road *r) |
| |
| AllRoadMap::iterator | getRoadEntry (long id) |
| |
| AllRoadMap * | getRoads () |
| |
| int | getSegmentCounter (Point *p, Road *r) |
| |
| | Grid () |
| | Constructor. More...
|
| |
| bool | inFootPrint (double x, double y) |
| | Test if a point is in the defined area of a track. More...
|
| |
| std::string | infos () |
| |
| void | outputInfos () |
| |
| void | readFromCSV (QString filename) |
| | Reads a csv file and inserts info into the corresponding attributs. More...
|
| |
| void | setDistance (PointGPS &p, Road &r) |
| | Compute the distance of a point to a road. More...
|
| |
| void | setTrackBoundingBox (double xMin, double xMax, double yMin, double yMax) |
| | Save data about our area of roads. More...
|
| |
| bool | trackInGrid () |
| | Check if track is in grid. More...
|
| |
| void | updateGrid (double x, double y) |
| | Find max and min of the grid. More...
|
| |
| double | xMax () const |
| |
| double | xMaxGrid () const |
| |
| double | xMin () const |
| |
| double | xMinGrid () const |
| |
| double | yMax () const |
| |
| double | yMaxGrid () const |
| |
| double | yMin () const |
| |
| double | yMinGrid () const |
| |
| virtual | ~Grid () |
| | Destructor. More...
|
| |
Grid embedded roads. This describes the network.
Definition at line 36 of file grid.h.
Constructor.
Definition at line 15 of file grid.cpp.
Destructor.
Definition at line 27 of file grid.cpp.
| void Grid::addRoad |
( |
const std::vector< std::vector< double > > & |
listOfCoordinates, |
|
|
long |
edgeId |
|
) |
| |
Creates a new road and inserts it in m_road.
Definition at line 196 of file grid.cpp.
| void Grid::buildMarkovMatrix |
( |
| ) |
|
buildMarkovMatrix
Definition at line 264 of file grid.cpp.
| double Grid::computeDistanceFraction |
( |
PointGPS * |
prevPoint, |
|
|
PointGPS * |
curPoint, |
|
|
long |
prevRoadId, |
|
|
long |
curRoadId |
|
) |
| |
| double Grid::getDistanceBetweenProjections |
( |
Point * |
projR1, |
|
|
Point * |
projR2, |
|
|
Road * |
r1 |
|
) |
| |
| double Grid::getDistanceToExtremity |
( |
Point * |
projR1, |
|
|
int |
node, |
|
|
Road * |
r1 |
|
) |
| |
| int Grid::getNoOfPoints |
( |
| ) |
const |
|
inline |
| int Grid::getNoOfRoads |
( |
| ) |
const |
|
inline |
Getters.
Definition at line 118 of file grid.h.
| std::vector< double > Grid::getProjectedPointAndDistance |
( |
PointGPS * |
p, |
|
|
Road * |
r |
|
) |
| |
| AllRoadMap::iterator Grid::getRoadEntry |
( |
long |
id | ) |
|
| int Grid::getSegmentCounter |
( |
Point * |
p, |
|
|
Road * |
r |
|
) |
| |
| bool Grid::inFootPrint |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Test if a point is in the defined area of a track.
- Parameters
-
| x | Coordinate x of a point |
| y | Coordinate x of a point |
- Returns
- true or false
Definition at line 259 of file grid.cpp.
| std::string Grid::infos |
( |
| ) |
|
| void Grid::outputInfos |
( |
| ) |
|
| void Grid::readFromCSV |
( |
QString |
filename | ) |
|
Reads a csv file and inserts info into the corresponding attributs.
- Parameters
-
| filename | the filepath/filename for the csv file to read |
Definition at line 42 of file grid.cpp.
Compute the distance of a point to a road.
- Parameters
-
| void Grid::setTrackBoundingBox |
( |
double |
xMin, |
|
|
double |
xMax, |
|
|
double |
yMin, |
|
|
double |
yMax |
|
) |
| |
Save data about our area of roads.
- Parameters
-
| xMin | Coordinate xMin of a track |
| xMax | Coordinate xMax of a track |
| yMin | Coordinate yMin of a track |
| yMax | Coordinate yMax of a track |
Definition at line 34 of file grid.cpp.
| void Grid::signalMessage |
( |
QString |
| ) |
|
|
signal |
| bool Grid::trackInGrid |
( |
| ) |
|
Check if track is in grid.
- Returns
- true if track is in grid
Definition at line 393 of file grid.cpp.
| void Grid::updateGrid |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Find max and min of the grid.
- Parameters
-
| x | Coordinate x |
| y | Coordinate y |
Definition at line 385 of file grid.cpp.
| double Grid::xMax |
( |
| ) |
const |
|
inline |
| double Grid::xMaxGrid |
( |
| ) |
const |
|
inline |
| double Grid::xMin |
( |
| ) |
const |
|
inline |
| double Grid::xMinGrid |
( |
| ) |
const |
|
inline |
| double Grid::yMax |
( |
| ) |
const |
|
inline |
| double Grid::yMaxGrid |
( |
| ) |
const |
|
inline |
| double Grid::yMin |
( |
| ) |
const |
|
inline |
| double Grid::yMinGrid |
( |
| ) |
const |
|
inline |
| std::string Grid::m_gridFullName |
|
protected |
| std::vector<PointRoad> Grid::m_vectorOfPoints |
The x max value
Definition at line 145 of file grid.h.
The x max value
Definition at line 155 of file grid.h.
The coordinates of the track.
The x min value
Definition at line 144 of file grid.h.
The x min value
Definition at line 154 of file grid.h.
The y max value
Definition at line 147 of file grid.h.
The y max value
Definition at line 157 of file grid.h.
The y min value
Definition at line 146 of file grid.h.
The y min value
Definition at line 156 of file grid.h.
The documentation for this class was generated from the following files: