 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GNEStoppingPlace_h
18 #define GNEStoppingPlace_h
51 const std::string& name,
bool friendlyPosition,
bool blockMovement);
75 static bool checkStoppinPlacePosition(
const std::string& startPosStr,
const std::string& endPosStr,
const double laneLength,
const bool friendlyPos);
84 static bool fixStoppinPlacePosition(std::string& startPosStr, std::string& endPosStr,
const double laneLength,
const bool friendlyPos);
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes
An Element which don't belongs to GNENet but has influency in the simulation.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
Position mySignPos
The position of the sign.
void setPosition(const Position &pos)=delete
Invalidate set new position in the view.
virtual Boundary getCenteringBoundary() const =0
Returns the boundary to which the view shall be centered in order to show the object.
SumoXMLTag
Numbers representing SUMO-XML - element names.
static const double myCircleInWidth
inner circle width resolution for all stopping places
virtual std::string getAttribute(SumoXMLAttr key) const =0
bool myFriendlyPosition
Flag for friendly position.
GNEStoppingPlace(const std::string &id, GNEViewNet *viewNet, GUIGlObjectType type, SumoXMLTag tag, GNELane *lane, const std::string &startPos, const std::string &endPos, const std::string &name, bool friendlyPosition, bool blockMovement)
Constructor.
Position getPositionInView() const
Returns position of additional in view.
double getStartPosition() const
get start Position
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
virtual void updateGeometry()=0
update pre-computed geometry information
static const double myCircleWidthSquared
squared circle width resolution for all stopping places
void setStoppingPlaceGeometry(double movingToSide)
set geometry common to all stopping places
A class that stores a 2D geometrical boundary.
A point in 2D or 3D with translation and scaling methods.
virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
double getEndPosition() const
get end Position
std::string myStartPosition
The relative start position this stopping place is located at (optional, if empty takes 0)
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
double getEndGeometryPositionOverLane() const
get end position over lane that is applicable to the shape
bool isAdditionalValid() const
check if current additional is valid to be writed into XML (by default true, can be reimplemented in ...
double getStartGeometryPositionOverLane() const
get start position over lane that is applicable to the shape
static bool fixStoppinPlacePosition(std::string &startPosStr, std::string &endPosStr, const double laneLength, const bool friendlyPos)
check if the position of an stoppingPlace over a la can be fixed
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
void fixAdditionalProblem()
fix additional problem
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
static const double myCircleInText
text inner circle width resolution for all stopping places
Stores the information about how to visualize structures.
std::string getParentName() const
Returns the name of the parent object (if any)
~GNEStoppingPlace()
Destructor.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string getAdditionalProblem() const
return a string with the current additional problem
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
static const double myCircleWidth
circle width resolution for all stopping places
static bool checkStoppinPlacePosition(const std::string &startPosStr, const std::string &endPosStr, const double laneLength, const bool friendlyPos)
check if the position of an stoppingPlace over a lane is valid (without modifications)
std::string myEndPosition
The position this stopping place is located at (optional, if empty takes the lane lenght)