![]() |
Map Matching
|
#include <pointroad.h>
Public Member Functions | |
| int | id () const |
| std::string | infos () const |
| long | isNode () const |
| void | outputInfos () |
| PointRoad () | |
| PointRoad (double x, double y, bool isNode) | |
| Constructor for Road points. More... | |
| void | setid (int id) |
| void | updateBelongToRoad (long roadId) |
| const std::vector< long > & | vectorOfRoadId () const |
Public Member Functions inherited from Point | |
| double | distanceToPoint (const Point &p) const |
| Calculate distance between two points. More... | |
| double | distanceToSegment (const Point &p1, const Point &p2) const |
| Compute the distance between a point and a segment. More... | |
| Point () | |
| Point (double x, double y) | |
| Constructor for GPS points. More... | |
| std::vector< double > | projectionOnSegment (const Point &a, const Point &b) const |
| bool | samePointAs (const Point &p) const |
| Check if two points share the same coordinates. More... | |
| void | setx (int dim, double value) |
| double | x (int dim) const |
| x the accessor for the KDtree More... | |
| virtual | ~Point () |
| Point Class's Destructor. More... | |
| double | x () const |
| void | setx (double x) |
| double | y () const |
| void | sety (double y) |
Protected Attributes | |
| int | m_id |
| bool | m_isNode |
| std::vector< long > | m_vectorOfRoadId |
Protected Attributes inherited from Point | |
| double | m_x |
| double | m_y |
Static Protected Attributes | |
| static long | counter = 0 |
Static Protected Attributes inherited from Point | |
| static const double | POINT_RADIUS = 200 |
Definition at line 10 of file pointroad.h.
|
inline |
Definition at line 12 of file pointroad.h.
|
inline |
Constructor for Road points.
| x | |
| y | |
| isNode |
Definition at line 20 of file pointroad.h.
|
inline |
|
inlinevirtual |
Reimplemented from Point.
Definition at line 29 of file pointroad.h.
|
inline |
| void PointRoad::outputInfos | ( | ) |
|
inline |
Definition at line 34 of file pointroad.h.
| void PointRoad::updateBelongToRoad | ( | long | roadId | ) |
|
inline |
Definition at line 36 of file pointroad.h.
|
staticprotected |
Definition at line 38 of file pointroad.h.
|
protected |
Definition at line 40 of file pointroad.h.
|
protected |
Definition at line 39 of file pointroad.h.
|
protected |
Definition at line 41 of file pointroad.h.