SUMO - Simulation of Urban MObility
|
Representation of a lane section. More...
#include <NIImporter_OpenDrive.h>
Public Member Functions | |
void | buildLaneMapping () |
Build the mapping from OpenDrive to SUMO lanes. More... | |
std::map< int, int > | getInnerConnections (OpenDriveXMLTag dir, const OpenDriveLaneSection &prev) |
unsigned int | getLaneNumber (OpenDriveXMLTag dir) const |
Returns the number of lanes for the given direction. More... | |
OpenDriveLaneSection (SUMOReal sArg) | |
Constructor. More... | |
Data Fields | |
std::map< int, int > | laneMap |
A mapping from OpenDrive to SUMO-index (the first is signed, the second unsigned) More... | |
std::map< OpenDriveXMLTag, std::vector< OpenDriveLane > > | lanesByDir |
The lanes, sorted by their direction. More... | |
SUMOReal | s |
The starting offset of this lane section. More... | |
std::string | sumoID |
The id (generic, without the optionally leading '-') of the edge generated for this section. More... | |
Representation of a lane section.
Definition at line 265 of file NIImporter_OpenDrive.h.
NIImporter_OpenDrive::OpenDriveLaneSection::OpenDriveLaneSection | ( | SUMOReal | sArg | ) |
Constructor.
[in] | sArg | The offset from the start, counted from the begin |
Definition at line 894 of file NIImporter_OpenDrive.cpp.
References lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_CENTER, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.
void NIImporter_OpenDrive::OpenDriveLaneSection::buildLaneMapping | ( | ) |
Build the mapping from OpenDrive to SUMO lanes.
Not all lanes are converted to SUMO-lanes; the mapping includes only those which are included in the SUMO network.
Definition at line 915 of file NIImporter_OpenDrive.cpp.
References NIImporter_OpenDrive::myImportAllTypes, NIImporter_OpenDrive::myLaneTypes2Import, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.
std::map< int, int > NIImporter_OpenDrive::OpenDriveLaneSection::getInnerConnections | ( | OpenDriveXMLTag | dir, |
const OpenDriveLaneSection & | prev | ||
) |
Definition at line 934 of file NIImporter_OpenDrive.cpp.
References laneMap, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and UNSET_CONNECTION.
unsigned int NIImporter_OpenDrive::OpenDriveLaneSection::getLaneNumber | ( | OpenDriveXMLTag | dir | ) | const |
Returns the number of lanes for the given direction.
Definition at line 902 of file NIImporter_OpenDrive.cpp.
References NIImporter_OpenDrive::myImportAllTypes, and NIImporter_OpenDrive::myLaneTypes2Import.
A mapping from OpenDrive to SUMO-index (the first is signed, the second unsigned)
Definition at line 292 of file NIImporter_OpenDrive.h.
Referenced by getInnerConnections().
std::map<OpenDriveXMLTag, std::vector<OpenDriveLane> > NIImporter_OpenDrive::OpenDriveLaneSection::lanesByDir |
The lanes, sorted by their direction.
Definition at line 294 of file NIImporter_OpenDrive.h.
Referenced by OpenDriveLaneSection(), and NIImporter_OpenDrive::setEdgeLinks2().
SUMOReal NIImporter_OpenDrive::OpenDriveLaneSection::s |
The starting offset of this lane section.
Definition at line 290 of file NIImporter_OpenDrive.h.
Referenced by NIImporter_OpenDrive::loadNetwork().
std::string NIImporter_OpenDrive::OpenDriveLaneSection::sumoID |
The id (generic, without the optionally leading '-') of the edge generated for this section.
Definition at line 296 of file NIImporter_OpenDrive.h.