![]() |
SUMO - Simulation of Urban MObility
|
Exporter writing networks using the openDRIVE format. More...
#include <NWWriter_OpenDrive.h>
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 | getLeftBorder (const NBEdge *edge) |
get the left border of the leftmost lane More... | |
static void | writeEmptyCenterLane (OutputDevice &device, const std::string &mark, SUMOReal markWidth) |
static void | writePlanView (const PositionVector &shape, OutputDevice &device) |
Exporter writing networks using the openDRIVE format.
Definition at line 55 of file NWWriter_OpenDrive.h.
|
staticprotected |
Definition at line 286 of file NWWriter_OpenDrive.cpp.
References StringBijection< T >::get(), StringBijection< T >::hasString(), and StringBijection< T >::insert().
Referenced by writeNetwork().
|
staticprotected |
Definition at line 296 of file NWWriter_OpenDrive.cpp.
References SVC_BICYCLE, SVC_PEDESTRIAN, and SVC_TRAM.
Referenced by writeNetwork().
|
staticprotected |
get the left border of the leftmost lane
Definition at line 317 of file NWWriter_OpenDrive.cpp.
References NBEdge::getLaneShape(), NBEdge::getLaneWidth(), NBEdge::getNumLanes(), and PositionVector::move2side().
Referenced by writeNetwork().
|
staticprotected |
Definition at line 274 of file NWWriter_OpenDrive.cpp.
Referenced by writeNetwork().
|
static |
Writes the network into a openDRIVE-file.
[in] | oc | The options to use |
[in] | nb | The network builder to fill |
Definition at line 61 of file NWWriter_OpenDrive.cpp.
References PositionVector::append(), NBNodeCont::begin(), NBEdgeCont::begin(), 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::getLanes(), getLaneType(), NBEdge::getLaneWidth(), getLeftBorder(), NBEdge::getLength(), NBNetBuilder::getNodeCont(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getStreetName(), OptionsCont::getString(), NBEdge::getToNode(), NBEdge::Connection::haveVia, OptionsCont::isSet(), NBEdge::isTurningDirectionAt(), PositionVector::length(), MIN_TURN_DIAMETER, PositionVector::move2side(), OutputDevice::openTag(), POSITION_EPS, NBEdge::Connection::shape, NBNodeCont::size(), NBEdgeCont::size(), SUMOReal, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, NBEdge::Connection::viaShape, writeEmptyCenterLane(), writePlanView(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by NWFrame::writeNetwork().
|
staticprotected |
Definition at line 257 of file NWWriter_OpenDrive.cpp.
References PositionVector::angleAt2D(), Position::distanceTo(), OUTPUT_ACCURACY, SUMOReal, Position::x(), and Position::y().
Referenced by writeNetwork().