 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef NWWriter_OpenDrive_h
18 #define NWWriter_OpenDrive_h
63 int edgeID,
int fromNodeID,
int toNodeID,
65 const double straightThresh,
70 const NBEdge* inEdge,
int nodeID,
71 int edgeID,
int inEdgeID,
int outEdgeID,
73 const std::vector<NBEdge::Connection>& parallel,
74 const bool isOuterEdge,
75 const double straightThresh,
76 const std::string& centerMark);
static void addPedestrianConnection(const NBEdge *inEdge, const NBEdge *outEdge, std::vector< NBEdge::Connection > ¶llel)
An output device that encapsulates an ofstream.
Instance responsible for building networks.
Static storage of an output device and its base (abstract) implementation.
static void writeEmptyCenterLane(OutputDevice &device, const std::string &mark, double markWidth)
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a openDRIVE-file.
static PositionVector getRightLaneBorder(const NBEdge *edge, int laneIndex=-1)
Storage for geometrical objects.
static double writeGeomLines(const PositionVector &shape, OutputDevice &device, OutputDevice &elevationDevice, double offset=0)
write geometry as sequence of lines (sumo style)
static PositionVector getLeftLaneBorder(const NBEdge *edge, int laneIndex=-1, double widthOffset=0)
get the left border of the given lane (the leftmost one by default)
The representation of a single edge during network building.
static int getID(const std::string &origID, StringBijection< int > &map, int &lastID)
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
static void writeNormalEdge(OutputDevice &device, const NBEdge *e, int edgeID, int fromNodeID, int toNodeID, const bool origNames, const double straightThresh, const ShapeContainer &shc)
write normal edge to device
A storage for options typed value containers)
static std::string getLaneType(SVCPermissions permissions)
static void checkLaneGeometries(const NBEdge *e)
check if the lane geometries are compatible with OpenDRIVE assumptions (colinear stop line)
static void writeElevationProfile(const PositionVector &shape, OutputDevice &device, const OutputDevice_String &elevationDevice)
Exporter writing networks using the openDRIVE format.
static bool writeGeomSmooth(const PositionVector &shape, double speed, OutputDevice &device, OutputDevice &elevationDevice, double straightThresh, double &length)
static double writeGeomPP3(OutputDevice &device, OutputDevice &elevationDevice, PositionVector init, double length, double offset=0)
write geometry as a single bezier curve (paramPoly3)
static void writeRoadObjects(OutputDevice &device, const NBEdge *e, const ShapeContainer &shc)
write road objects referenced as edge parameters
static int writeInternalEdge(OutputDevice &device, OutputDevice &junctionDevice, const NBEdge *inEdge, int nodeID, int edgeID, int inEdgeID, int outEdgeID, int connectionID, const std::vector< NBEdge::Connection > ¶llel, const bool isOuterEdge, const double straightThresh, const std::string ¢erMark)
write internal edge to device, return next connectionID