 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEStoppingPlace_h
17 #define GNEStoppingPlace_h
56 int parametersSet,
const std::string& name,
bool friendlyPosition,
bool blockMovement);
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes
double myStartPosition
The relative start position this stopping place is located at (optional, if empty takes 0)
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.
GNEStoppingPlace(const std::string &id, GNEViewNet *viewNet, GUIGlObjectType type, SumoXMLTag tag, GNELane *lane, double startPos, double endPos, int parametersSet, const std::string &name, bool friendlyPosition, bool blockMovement)
Constructor.
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
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.
const int STOPPINGPLACE_STARTPOS_SET
const int STOPPINGPLACE_ENDPOS_SET
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
int myParametersSet
Variable used for set/unset start/endPositions.
bool myFriendlyPosition
Flag for friendly position.
bool isAttributeEnabled(SumoXMLAttr key) const
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)
double getAttributeDouble(SumoXMLAttr key) const
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 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
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
virtual void setAttribute(SumoXMLAttr key, const std::string &value)=0
set attribute after validation
void fixAdditionalProblem()
fix additional problem
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
double myEndPosition
The position this stopping place is located at (optional, if empty takes the lane length)
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