 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
54 const std::string& filename,
double probability,
bool off,
SUMOTime timeThreshold,
const std::string& vTypes,
bool blockMovement);
std::string myFilename
filename of rerouter
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GNERerouter(const std::string &id, GNEViewNet *viewNet, const Position &pos, const std::vector< GNEEdge * > &edges, const std::string &name, const std::string &filename, double probability, bool off, SUMOTime timeThreshold, const std::string &vTypes, bool blockMovement)
Constructor.
An Element which don't belongs to GNENet but has influency in the simulation.
std::string myVTypes
optional vehicle types for restricting the rerouter
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
GNERerouter & operator=(const GNERerouter &)=delete
Invalidated assignment operator.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
bool isAttributeEnabled(SumoXMLAttr key) const
Position getPositionInView() const
Returns position of additional in view.
A road/street connecting two junctions (netedit-version)
SUMOTime myTimeThreshold
attribute to configure activation time threshold
Position myPosition
position of rerouter in view
A class that stores a 2D geometrical boundary.
std::string getAttribute(SumoXMLAttr key) const
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
A point in 2D or 3D with translation and scaling methods.
~GNERerouter()
Destructor.
double myProbability
probability of rerouter
std::string getParentName() const
Returns the name of the parent object (if any)
double getAttributeDouble(SumoXMLAttr key) const
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
void openAdditionalDialog()
open GNERerouterDialog
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void updateGeometry()
update pre-computed geometry information
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
bool myOff
attribute to enable or disable inactive initially