59 #ifdef CHECK_MEMORY_LEAKS 75 myTextColorSelected(
RGBColor::BLUE) {
137 }
else if ((
myEndPos - startPos) < 1) {
138 throw InvalidArgument(
"Start position '" +
toString(startPos) +
"' not allowed. Lenght of StoppingPlace must be equal or greather than 1");
148 throw InvalidArgument(
"End position '" +
toString(endPos) +
"' not allowed. Must be smaller than lane length");
152 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.
void commmitAdditionalGeometryMoved(SUMOReal oldPosx, SUMOReal oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
void setStartPosition(SUMOReal startPos)
Set a new Start position in StoppingPlace.
GNELane * myLane
The lane this additional belongs NULL if additional doesnt' belongs to a lane.
Position getPositionInView() const
Returns position of StoppingPlace in view.
Position positionAtOffset(SUMOReal pos, SUMOReal lateralOffset=0) const
Returns the position at the given length.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
SUMOReal myEndPos
The end position this stopping place is located at.
SUMOReal getStartPosition() const
Returns the Start position of the stoppingPlace.
SUMOReal getLaneParametricLenght() const
returns the parameteric length of the lane
#define UNUSED_PARAMETER(x)
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
SUMOReal getLaneShapeLenght() const
returns the length of the lane's shape
void refreshAdditional(GNEAdditional *additional)
refreshes boundary information of an additional after a geometry update
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise, the sub-group will be added as a new command into parent group. A matching begin() must have been called previously.
A point in 2D or 3D with translation and scaling methods.
SUMOReal getEndPosition() const
Returns the End position of the stoppingPlace.
friend class GNEChange_Attribute
declare friend class
const std::string & getParentName() const
Returns the name of the parent object (if any)
SUMOReal myStartPos
The start position this stopping place is located at.
SUMOReal x() const
Returns the x-position.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
~GNEStoppingPlace()
Destructor.
void moveAdditionalGeometry(SUMOReal offsetx, SUMOReal offsety)
change the position of the StoppingPlace geometry
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
An Element which don't belongs to GNENet but has influency in the simulation.
virtual void updateGeometry()=0
update pre-computed geometry information
SUMOReal getPositionRelativeToParametricLenght(SUMOReal position) const
GNENet * getNet() const
get the net object
Position myPosition
The position in which this additional element is located.
SumoXMLTag getTag() const
get Tag assigned to this object