71 myTextColorSelected(
RGBColor::BLUE) {
133 }
else if ((
myEndPos - startPos) < 1) {
SumoXMLTag
Numbers representing SUMO-XML - element names.
GUIIcon
An enumeration of icons used by the gui applications.
void setEndPosition(double endPos)
Set a new End position in StoppingPlace.
GNELane * myLane
The lane this additional belongs.
GNEStoppingPlace(const std::string &id, GNEViewNet *viewNet, SumoXMLTag tag, GUIIcon icon, GNELane *lane, double startPos, double endPos)
Constructor.
Position getPositionInView() const
Returns position of StoppingPlace in view.
double getPositionRelativeToParametricLength(double position) const
double x() const
Returns the x-position.
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...
#define UNUSED_PARAMETER(x)
void setStartPosition(double startPos)
Set a new Start position in StoppingPlace.
double myEndPos
The end position this stopping place is located at.
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
double getEndPosition() const
Returns the End position of the stoppingPlace.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
double getLaneParametricLength() const
returns the parameteric length of the lane
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
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.
friend class GNEChange_Attribute
declare friend class
const std::string & getParentName() const
Returns the name of the parent object (if any)
void moveAdditionalGeometry(double offsetx, double offsety)
change the position of the StoppingPlace geometry
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
~GNEStoppingPlace()
Destructor.
double getLaneShapeLength() const
returns the length of the lane's shape
double getStartPosition() const
Returns the Start position of the stoppingPlace.
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
GNENet * getNet() const
get the net object
double myStartPos
The start position this stopping place is located at.
Position myPosition
The position in which this additional element is located.
void commmitAdditionalGeometryMoved(double oldPosx, double oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
SumoXMLTag getTag() const
get XML Tag assigned to this object