![]() |
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 bool | 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 366 of file NWWriter_OpenDrive.cpp.
References StringBijection< T >::get(), StringBijection< T >::hasString(), and StringBijection< T >::insert().
Referenced by writeNetwork().
|
staticprotected |
Definition at line 376 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)
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().
|
staticprotected |
Definition at line 663 of file NWWriter_OpenDrive.cpp.
References OutputDevice_String::getString(), NUMERICAL_EPS, and SUMOReal.
Referenced by writeNetwork().
|
staticprotected |
Definition at line 355 of file NWWriter_OpenDrive.cpp.
Referenced by writeNetwork().
|
staticprotected |
write geometry as sequence of lines (sumo style)
Definition at line 333 of file NWWriter_OpenDrive.cpp.
References PositionVector::angleAt2D(), OutputDevice::closeTag(), Position::distanceTo2D(), MAX2(), OutputDevice::openTag(), POSITION_EPS, SUMOReal, OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().
Referenced by writeGeomSmooth(), and writeNetwork().
|
staticprotected |
write geometry as a single bezier curve (paramPoly3)
Definition at line 438 of file NWWriter_OpenDrive.cpp.
References PositionVector::add(), PositionVector::angleAt2D(), OutputDevice::closeTag(), MAX2(), OutputDevice::openTag(), POSITION_EPS, PositionVector::rotate2D(), SUMOReal, OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().
Referenced by writeGeomSmooth(), and writeNetwork().
|
staticprotected |
write geometry as sequence of lines and bezier curves
Definition at line 531 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, 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().