![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Provides utility functions for matching locations to edges (during route parsing). More...
#include <MapMatcher.h>
Public Member Functions | |
| void | parseGeoEdges (const PositionVector &positions, bool geo, SUMOVehicleClass vClass, std::vector< const E * > &into, const std::string &rid, bool isFrom, bool &ok, bool forceEdge=false) |
Protected Member Functions | |
| const L * | getClosestLane (const Position &pos, SUMOVehicleClass vClass, double distance=-1.) |
| find closest lane within distance for the given position or nullptr | |
| const E * | getJunctionTaz (const Position &pos, const E *closestEdge, SUMOVehicleClass vClass, bool isFrom) |
| find closest junction taz given the closest edge | |
| virtual SumoRNG * | getRNG () |
| const E * | getTaz (const Position &pos, const E *closestEdge, bool isFrom) |
| find closest junction taz given the closest edge | |
| virtual void | initLaneTree (NamedRTree *tree)=0 |
| MapMatcher (bool matchJunctions, bool matchTAZ, double matchDistance, MsgHandler *errorOutput) | |
| virtual E * | retrieveEdge (const std::string &id)=0 |
| virtual | ~MapMatcher () |
Protected Attributes | |
| bool | myMapMatchTAZ |
Private Member Functions | |
| NamedRTree * | getLaneTree () |
| initialize lane-RTree | |
| MapMatcher (const MapMatcher &s)=delete | |
| Invalidated copy constructor. | |
| MapMatcher & | operator= (const MapMatcher &s)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| MsgHandler * | myErrorOutput |
| NamedRTree * | myLaneTree |
| RTree for finding lanes. | |
| double | myMapMatchingDistance |
| bool | myMapMatchJunctions |
Provides utility functions for matching locations to edges (during route parsing).
Definition at line 45 of file MapMatcher.h.
|
inlineprotected |
Definition at line 98 of file MapMatcher.h.
|
inlineprotectedvirtual |
Definition at line 105 of file MapMatcher.h.
|
privatedelete |
Invalidated copy constructor.
|
inlineprotected |
find closest lane within distance for the given position or nullptr
Definition at line 110 of file MapMatcher.h.
Referenced by MapMatcher< MSEdge, MSLane, MSJunction >::parseGeoEdges().
|
inlineprotected |
find closest junction taz given the closest edge
Definition at line 138 of file MapMatcher.h.
Referenced by MapMatcher< MSEdge, MSLane, MSJunction >::parseGeoEdges().
|
inlineprivate |
initialize lane-RTree
Definition at line 221 of file MapMatcher.h.
Referenced by MapMatcher< MSEdge, MSLane, MSJunction >::getClosestLane().
|
inlineprotectedvirtual |
Reimplemented in MSRouteHandler.
Definition at line 209 of file MapMatcher.h.
|
inlineprotected |
find closest junction taz given the closest edge
Definition at line 179 of file MapMatcher.h.
Referenced by MapMatcher< MSEdge, MSLane, MSJunction >::parseGeoEdges().
|
protectedpure virtual |
Implemented in MSDevice_FCDReplay::FCDHandler, MSRouteHandler, and RORouteHandler.
Referenced by MapMatcher< MSEdge, MSLane, MSJunction >::getLaneTree().
|
privatedelete |
Invalidated assignment operator.
|
inline |
Definition at line 48 of file MapMatcher.h.
|
protectedpure virtual |
Implemented in MSDevice_FCDReplay::FCDHandler, MSRouteHandler, and RORouteHandler.
Referenced by MapMatcher< MSEdge, MSLane, MSJunction >::getJunctionTaz().
|
private |
Definition at line 233 of file MapMatcher.h.
|
private |
RTree for finding lanes.
Definition at line 230 of file MapMatcher.h.
|
private |
Definition at line 232 of file MapMatcher.h.
|
private |
Definition at line 231 of file MapMatcher.h.
|
protected |
Definition at line 217 of file MapMatcher.h.