SUMO - Simulation of Urban MObility
NWWriter_OpenDrive Class Reference

Exporter writing networks using the openDRIVE format. More...

#include <NWWriter_OpenDrive.h>

Collaboration diagram for NWWriter_OpenDrive:
Collaboration graph

Static Public Member Functions

static void writeNetwork (const OptionsCont &oc, NBNetBuilder &nb)
 Writes the network into a openDRIVE-file. More...
 

Static Protected Member Functions

static int getID (const std::string &origID, StringBijection< int > &map, int &lastID)
 
static std::string getLaneType (SVCPermissions permissions)
 
static PositionVector getLeftLaneBorder (const NBEdge *edge, int laneIndex=-1)
 get the left border of the given lane (the leftmost one by default) More...
 
static void writeEmptyCenterLane (OutputDevice &device, const std::string &mark, SUMOReal markWidth)
 
static void writePlanView (const PositionVector &shape, OutputDevice &device)
 

Detailed Description

Exporter writing networks using the openDRIVE format.

Definition at line 55 of file NWWriter_OpenDrive.h.

Member Function Documentation

int NWWriter_OpenDrive::getID ( const std::string &  origID,
StringBijection< int > &  map,
int &  lastID 
)
staticprotected
std::string NWWriter_OpenDrive::getLaneType ( SVCPermissions  permissions)
staticprotected

Definition at line 296 of file NWWriter_OpenDrive.cpp.

References SVC_BICYCLE, SVC_PEDESTRIAN, and SVC_TRAM.

Referenced by writeNetwork().

PositionVector NWWriter_OpenDrive::getLeftLaneBorder ( const NBEdge edge,
int  laneIndex = -1 
)
staticprotected

get the left border of the given lane (the leftmost one by default)

Definition at line 317 of file NWWriter_OpenDrive.cpp.

References NBEdge::getLaneShape(), NBEdge::getLaneWidth(), NBEdge::getNumLanes(), PositionVector::move2side(), and SUMOReal.

Referenced by writeNetwork().

void NWWriter_OpenDrive::writeEmptyCenterLane ( OutputDevice device,
const std::string &  mark,
SUMOReal  markWidth 
)
staticprotected

Definition at line 274 of file NWWriter_OpenDrive.cpp.

Referenced by writeNetwork().

void NWWriter_OpenDrive::writePlanView ( const PositionVector shape,
OutputDevice device 
)
staticprotected

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