Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIImporter_OpenDrive::OpenDriveEdge Struct Reference

Representation of an openDrive "link". More...

#include <NIImporter_OpenDrive.h>

Collaboration diagram for NIImporter_OpenDrive::OpenDriveEdge:
[legend]

Public Member Functions

int getPriority (OpenDriveXMLTag dir) const
 Returns the edge's priority, regarding the direction.
 OpenDriveEdge (const std::string &idArg, const std::string &streetNameArg, const std::string &junctionArg, double lengthArg)

Data Fields

std::set< Connectionconnections
std::vector< OpenDriveElevationOpenDriveElevationelevations
NBNodefrom
PositionVector geom
std::vector< OpenDriveGeometrygeometries
std::string id
 The id of the edge.
bool isInner
std::string junction
 The id of the junction the edge belongs to.
std::vector< double > laneOffsets
std::vector< OpenDriveLaneSectionlaneSections
double length
 The length of the edge.
std::vector< OpenDriveLinklinks
std::vector< OpenDriveObjectobjects
std::vector< OpenDriveLaneOffsetoffsets
std::vector< OpenDriveSignalsignals
std::string streetName
 The road name of the edge.
NBNodeto

Detailed Description

Representation of an openDrive "link".

Definition at line 512 of file NIImporter_OpenDrive.h.

Constructor & Destructor Documentation

◆ OpenDriveEdge()

NIImporter_OpenDrive::OpenDriveEdge::OpenDriveEdge ( const std::string & idArg,
const std::string & streetNameArg,
const std::string & junctionArg,
double lengthArg )
inline

Definition at line 513 of file NIImporter_OpenDrive.h.

References from, id, isInner, junction, length, streetName, and to.

Member Function Documentation

◆ getPriority()

int NIImporter_OpenDrive::OpenDriveEdge::getPriority ( OpenDriveXMLTag dir) const

Returns the edge's priority, regarding the direction.

The priority is determined by evaluating the signs located at the road

Parameters
[in]dirThe direction which priority shall be returned
Returns
The priority of the given direction

Definition at line 2286 of file NIImporter_OpenDrive.cpp.

References NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT, and signals.

Referenced by NIImporter_OpenDrive::loadNetwork().

Here is the caller graph for this function:

Field Documentation

◆ connections

◆ elevations

std::vector<OpenDriveElevationOpenDriveElevation> NIImporter_OpenDrive::OpenDriveEdge::elevations

◆ from

NBNode* NIImporter_OpenDrive::OpenDriveEdge::from

◆ geom

◆ geometries

std::vector<OpenDriveGeometry> NIImporter_OpenDrive::OpenDriveEdge::geometries

Definition at line 542 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::computeShapes().

◆ id

◆ isInner

bool NIImporter_OpenDrive::OpenDriveEdge::isInner

◆ junction

std::string NIImporter_OpenDrive::OpenDriveEdge::junction

The id of the junction the edge belongs to.

Definition at line 538 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork(), and OpenDriveEdge().

◆ laneOffsets

std::vector<double> NIImporter_OpenDrive::OpenDriveEdge::laneOffsets

◆ laneSections

◆ length

double NIImporter_OpenDrive::OpenDriveEdge::length

The length of the edge.

Definition at line 540 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork(), OpenDriveEdge(), and NIImporter_OpenDrive::splitMinWidths().

◆ links

std::vector<OpenDriveLink> NIImporter_OpenDrive::OpenDriveEdge::links

◆ objects

std::vector<OpenDriveObject> NIImporter_OpenDrive::OpenDriveEdge::objects

Definition at line 552 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::writeRoadObjects().

◆ offsets

std::vector<OpenDriveLaneOffset> NIImporter_OpenDrive::OpenDriveEdge::offsets

Definition at line 544 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::computeShapes().

◆ signals

std::vector<OpenDriveSignal> NIImporter_OpenDrive::OpenDriveEdge::signals

Definition at line 550 of file NIImporter_OpenDrive.h.

Referenced by getPriority(), and NIImporter_OpenDrive::loadNetwork().

◆ streetName

std::string NIImporter_OpenDrive::OpenDriveEdge::streetName

The road name of the edge.

Definition at line 536 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork(), and OpenDriveEdge().

◆ to

NBNode* NIImporter_OpenDrive::OpenDriveEdge::to

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