![]() |
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 | 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... | |
Exporter writing networks using the openDRIVE format.
Definition at line 56 of file NWWriter_OpenDrive.h.
|
staticprotected |
Definition at line 298 of file NWWriter_OpenDrive.cpp.
References StringBijection< T >::get(), StringBijection< T >::hasString(), and StringBijection< T >::insert().
Referenced by writeNetwork().
|
staticprotected |
Definition at line 308 of file NWWriter_OpenDrive.cpp.
References isRailway(), SVC_BICYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_RAIL, SVC_RAIL_ELECTRIC, SVC_RAIL_URBAN, SVC_TRAM, and SVCAll.
Referenced by writeNetwork().
|
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().
|
staticprotected |
Definition at line 586 of file NWWriter_OpenDrive.cpp.
References OutputDevice_String::getString(), NUMERICAL_EPS, and SUMOReal.
Referenced by writeNetwork().
|
staticprotected |
Definition at line 286 of file NWWriter_OpenDrive.cpp.
Referenced by writeNetwork().
|
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().
|
staticprotected |
write geometry as a single bezier curve (paramPoly3)
Definition at line 365 of file NWWriter_OpenDrive.cpp.
References PositionVector::add(), PositionVector::angleAt2D(), OutputDevice::closeTag(), OutputDevice::openTag(), PositionVector::rotate2D(), SUMOReal, and OutputDevice::writeAttr().
Referenced by writeGeomSmooth(), and writeNetwork().
|
staticprotected |
write geometry as sequence of lines and bezier curves
Definition at line 455 of file NWWriter_OpenDrive.cpp.
References PositionVector::add(), GeomHelper::angleDiff(), Position::angleTo2D(), bezier(), NBNode::bezierControlPoints(), DEBUGCOND, DEG2RAD, Position::distanceTo2D(), PositionVector::length2D(), MAX2(), MIN2(), POSITION_EPS, PositionVector::positionAtOffset2D(), RAD2DEG, SUMOReal, toString(), writeGeomLines(), and writeGeomPP3().
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 66 of file NWWriter_OpenDrive.cpp.
References NBNodeCont::begin(), NBEdgeCont::begin(), bezier(), NBNode::bezierControlPoints(), DEBUGCOND, 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(), getLeftLaneBorder(), NBEdge::getLength(), NBNetBuilder::getNodeCont(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getSpeed(), NBEdge::getStreetName(), OptionsCont::getString(), NBEdge::getToNode(), OptionsCont::isSet(), NBEdge::isTurningDirectionAt(), PositionVector::length2D(), OutputDevice::openTag(), OUTPUT_ACCURACY, OutputDevice::setPrecision(), NBNodeCont::size(), NBEdgeCont::size(), SUMOReal, SVC_PEDESTRIAN, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, writeElevationProfile(), writeEmptyCenterLane(), writeGeomLines(), writeGeomPP3(), writeGeomSmooth(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by NWFrame::writeNetwork().