59 #ifdef CHECK_MEMORY_LEAKS 76 myTextColorSelected(
RGBColor::BLUE) {
149 }
else if ((
myEndPos - startPos) < 1) {
150 throw InvalidArgument(
"Start position '" +
toString(startPos) +
"' not allowed. Lenght of StoppingPlace must be equal or greather than 1");
160 throw InvalidArgument(
"End position '" +
toString(endPos) +
"' not allowed. Must be smaller than lane length");
164 throw InvalidArgument(
"End position '" +
toString(endPos) +
"' not allowed. Lenght of StoppingPlace must be equal or greather than 1");
SumoXMLTag
Numbers representing SUMO-XML - element names.
SUMOReal getStartPosition() const
Returns the Start position of the stoppingPlace.
void setStartPosition(SUMOReal startPos)
Set a new Start position in StoppingPlace.
void moveAdditional(SUMOReal posx, SUMOReal posy, GNEUndoList *undoList)
change the position of the StoppingPlace geometry
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
SUMOReal myEndPos
The end position this stopping place is located at.
SUMOReal x() const
Returns the x-position.
#define UNUSED_PARAMETER(x)
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
SUMOReal getPositionRelativeToParametricLenght(SUMOReal position) const
A point in 2D or 3D with translation and scaling methods.
GNELane * myLane
The lane this stopping place belongs.
friend class GNEChange_Attribute
declare friend class
Position positionAtOffset(SUMOReal pos, SUMOReal lateralOffset=0) const
Returns the position at the given length.
SUMOReal myStartPos
The start position this stopping place is located at.
~GNEStoppingPlace()
Destructor.
GNELane * getLane() const
Returns pointer to Lane of stopping place.
bool removeAdditional(GNEAdditional *additional)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
void setEndPosition(SUMOReal endPos)
Set a new End position in StoppingPlace.
GNEStoppingPlace(const std::string &id, GNEViewNet *viewNet, SumoXMLTag tag, GNELane *lane, SUMOReal startPos, SUMOReal endPos, bool blocked=false)
Constructor.
const PositionVector & getShape() const
returns the shape of the lane
SUMOReal getLaneShapeLenght() const
returns the length of the lane's shape
void changeLane(GNELane *newLane)
change lane of stopping place
bool myBlocked
boolean to check if additional element is blocked (i.e. cannot be moved with mouse) ...
An Element which don't belongs to GNENet but has influency in the simulation.
virtual void updateGeometry()=0
update pre-computed geometry information
void removeLaneReference()
Remove reference to Lane of stopping place.
Position myPosition
The position in which this additional element is located.
const std::string & getParentName() const
Returns the name of the parent object (if any)
void addAdditional(GNEAdditional *additional)
Position getPositionInView() const
Returns position of StoppingPlace in view.
SUMOReal getEndPosition() const
Returns the End position of the stoppingPlace.