38 NBPTStop::NBPTStop(std::string ptStopId,
Position position, std::string edgeId, std::string origEdgeId,
double length, std::string name) :
42 myOrigEdgeId(origEdgeId),
43 myPTStopLength(length),
45 myFriendlyPos(false) {
74 if (myFrom < 0 || myTo > edgeLength) {
const std::string getName()
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
void write(OutputDevice &device)
const std::string myOrigEdgeId
void add(const Position &pos)
Adds the given position to this one.
const std::string getEdgeId()
std::string getID() const
const double myPTStopLength
const std::string myEdgeId
A point in 2D or 3D with translation and scaling methods.
void computExtent(double center, double d)
void reshiftPostion(const double offsetX, const double offsetY)
void setLaneID(const std::string &laneId)
Static storage of an output device and its base (abstract) implementation.
const Position & getPosition()
bool closeTag()
Closes the most recently opened tag.
const std::string getOrigEdgeId()
NBPTStop(std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name)
Constructor.
const std::string myPTStopId
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.