45 if (edge == 0 || laneIndex < 0 || edge->getNumLanes() <= laneIndex) {
46 WRITE_ERROR(
"Lane '" + laneID +
"' to place poi '" + poiID +
"' on is not known.");
52 if (lanePos < 0 || lanePos > edge->
getLength()) {
55 return edge->
getLanes()[laneIndex].shape.positionAtOffset(lanePos, -lanePosLat);
#define WRITE_WARNING(msg)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static methods for processing the coordinates conversion for the current net
Storage for edges, including some functionality operating on multiple edges.
NBEdge * retrieve(const std::string &id, bool retrieveExtracted=false) const
Returns the edge that has the given id.
The representation of a single edge during network building.
double getLength() const
Returns the computed length of the edge.
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
static void interpretLaneID(const std::string &lane_id, std::string &edge_id, int &index)
parses edge-id and index from lane-id
Position getLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)
get position for a given laneID (Has to be implemented in all child)
const NBEdgeCont & myEdgeCont
NIXMLShapeHandler(ShapeContainer &sc, const NBEdgeCont &ec)
A point in 2D or 3D with translation and scaling methods.
static const Position INVALID
used to indicate that a position is valid
Storage for geometrical objects.
The XML-Handler for network loading.