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 writeElevationProfile (const PositionVector &shape, OutputDevice &device, const OutputDevice_String &elevationDevice)
 
static void writeEmptyCenterLane (OutputDevice &device, const std::string &mark, SUMOReal markWidth)
 
static SUMOReal writeGeomLines (const PositionVector &shape, OutputDevice &device, OutputDevice &elevationDevice, SUMOReal offset=0)
 write geometry as sequence of lines (sumo style) More...
 
static SUMOReal writeGeomPP3 (OutputDevice &device, OutputDevice &elevationDevice, PositionVector init, SUMOReal length, SUMOReal offset=0)
 write geometry as a single bezier curve (paramPoly3) More...
 
static void writeGeomSmooth (const PositionVector &shape, SUMOReal speed, OutputDevice &device, OutputDevice &elevationDevice)
 write geometry as sequence of lines and bezier curves More...
 

Detailed Description

Exporter writing networks using the openDRIVE format.

Definition at line 56 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
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 343 of file NWWriter_OpenDrive.cpp.

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

Referenced by writeNetwork().

void NWWriter_OpenDrive::writeElevationProfile ( const PositionVector shape,
OutputDevice device,
const OutputDevice_String elevationDevice 
)
staticprotected

Definition at line 586 of file NWWriter_OpenDrive.cpp.

References OutputDevice_String::getString(), NUMERICAL_EPS, and SUMOReal.

Referenced by writeNetwork().

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

Definition at line 286 of file NWWriter_OpenDrive.cpp.

Referenced by writeNetwork().

SUMOReal NWWriter_OpenDrive::writeGeomLines ( const PositionVector shape,
OutputDevice device,
OutputDevice elevationDevice,
SUMOReal  offset = 0 
)
staticprotected

write geometry as sequence of lines (sumo style)

Definition at line 271 of file NWWriter_OpenDrive.cpp.

References PositionVector::angleAt2D(), Position::distanceTo2D(), SUMOReal, Position::x(), Position::y(), and Position::z().

Referenced by writeGeomSmooth(), and writeNetwork().

SUMOReal NWWriter_OpenDrive::writeGeomPP3 ( OutputDevice device,
OutputDevice elevationDevice,
PositionVector  init,
SUMOReal  length,
SUMOReal  offset = 0 
)
staticprotected
void NWWriter_OpenDrive::writeGeomSmooth ( const PositionVector shape,
SUMOReal  speed,
OutputDevice device,
OutputDevice elevationDevice 
)
staticprotected
void NWWriter_OpenDrive::writeNetwork ( const OptionsCont oc,
NBNetBuilder nb 
)
static

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