55 const std::string& filename,
double probability,
bool off,
double timeThreshold,
const std::string& vTypes,
bool blockMovement);
~GNERerouter()
Destructor.
Stores the information about how to visualize structures.
std::string getAttribute(SumoXMLAttr key) const
Position getPositionInView() const
Returns position of additional in view.
Position myPosition
position of rerouter in view
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
bool myOff
attribute to enable or disable inactive initially
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
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, double timeThreshold, const std::string &vTypes, bool blockMovement)
Constructor.
double myProbability
probability of rerouter
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string myFilename
filename of rerouter
A point in 2D or 3D with translation and scaling methods.
std::string myVTypes
optional vehicle types for restricting the rerouter
A road/street connecting two junctions (netedit-version)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
An Element which don't belongs to GNENet but has influency in the simulation.
void updateGeometry(bool updateGrid)
update pre-computed geometry information
std::string getParentName() const
Returns the name of the parent object (if any)
GNERerouter & operator=(const GNERerouter &)=delete
Invalidated assignment operator.
double myTimeThreshold
attribute to configure activation time threshold
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void openAdditionalDialog()
open GNERerouterDialog