SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NIImporter_OpenDrive::OpenDriveLaneSection Struct Reference

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, intgetInnerConnections (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, intlaneMap
 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...
 

Detailed Description

Representation of a lane section.

Definition at line 265 of file NIImporter_OpenDrive.h.

Constructor & Destructor Documentation

NIImporter_OpenDrive::OpenDriveLaneSection::OpenDriveLaneSection ( SUMOReal  sArg)

Constructor.

Parameters
[in]sArgThe offset from the start, counted from the begin

Definition at line 905 of file NIImporter_OpenDrive.cpp.

References lanesByDir, NIImporter_OpenDrive::OPENDRIVE_TAG_CENTER, NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.

Member Function Documentation

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 926 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 
)
unsigned int NIImporter_OpenDrive::OpenDriveLaneSection::getLaneNumber ( OpenDriveXMLTag  dir) const

Returns the number of lanes for the given direction.

Returns
The named direction's lane number

Definition at line 913 of file NIImporter_OpenDrive.cpp.

References NIImporter_OpenDrive::myImportAllTypes, and NIImporter_OpenDrive::myLaneTypes2Import.

Field Documentation

std::map<int, int> NIImporter_OpenDrive::OpenDriveLaneSection::laneMap

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.


The documentation for this struct was generated from the following files: