Eclipse SUMO - Simulation of Urban MObility
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. More...
 
 OpenDriveEdge (const std::string &idArg, const std::string &streetNameArg, const std::string &junctionArg, double lengthArg)
 

Data Fields

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

Detailed Description

Representation of an openDrive "link".

Definition at line 508 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 509 of file NIImporter_OpenDrive.h.

References isInner, and junction.

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 2231 of file NIImporter_OpenDrive.cpp.

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

Referenced by NIImporter_OpenDrive::loadNetwork().

Here is the caller graph for this function:

Field Documentation

◆ connections

◆ elevations

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

◆ from

NBNode* NIImporter_OpenDrive::OpenDriveEdge::from

◆ geom

◆ geometries

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

◆ 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 534 of file NIImporter_OpenDrive.h.

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

◆ laneOffsets

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

◆ laneSections

◆ length

double NIImporter_OpenDrive::OpenDriveEdge::length

◆ links

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

◆ objects

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

◆ offsets

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

◆ signals

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

◆ streetName

std::string NIImporter_OpenDrive::OpenDriveEdge::streetName

The road name of the edge.

Definition at line 532 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork().

◆ to

NBNode* NIImporter_OpenDrive::OpenDriveEdge::to

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