SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 bool 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)

it would be tempting to use

Definition at line 411 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 663 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 355 of file NWWriter_OpenDrive.cpp.

Referenced by writeNetwork().

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

Writes the network into a openDRIVE-file.

Parameters
[in]ocThe options to use
[in]nbThe network builder to fill

Definition at line 66 of file NWWriter_OpenDrive.cpp.

References NBNodeCont::begin(), NBEdgeCont::begin(), bezier(), NBNode::bezierControlPoints(), DEBUGCOND, PositionVector::distance2D(), NBNodeCont::end(), NBEdgeCont::end(), StringUtils::escapeXML(), NBEdge::Connection::fromLane, OptionsCont::getBool(), NBEdge::getConnections(), GeoConvHelper::getConvBoundary(), OutputDevice::getDevice(), NBNetBuilder::getEdgeCont(), GeoConvHelper::getFinal(), NBEdge::getFromNode(), Named::getID(), getID(), NBNode::getIncomingEdges(), NBEdge::Connection::getInternalLaneID(), NBEdge::getLaneID(), NBEdge::getLanes(), NBEdge::getLaneShape(), getLaneType(), NBEdge::getLaneWidth(), getLeftLaneBorder(), NBEdge::getLength(), NBNetBuilder::getNodeCont(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getSpeed(), NBEdge::getStreetName(), OptionsCont::getString(), NBEdge::getToNode(), OptionsCont::isSet(), NBEdge::isTurningDirectionAt(), PositionVector::length2D(), NUMERICAL_EPS, OutputDevice::openTag(), OUTPUT_ACCURACY, OutputDevice::setPrecision(), PositionVector::sideOffset(), SUMOReal, SVC_PEDESTRIAN, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, toString(), WRITE_WARNING, writeElevationProfile(), writeEmptyCenterLane(), writeGeomLines(), writeGeomPP3(), writeGeomSmooth(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

Referenced by NWFrame::writeNetwork().


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