60 GNERerouter(
const std::string&
id,
GNEViewNet* viewNet,
Position pos, std::vector<GNEEdge*> edges,
const std::string& filename,
double probability,
bool off);
GNERerouter & operator=(const GNERerouter &)
Invalidated assignment operator.
~GNERerouter()
Destructor.
Stores the information about how to visualize structures.
std::string getAttribute(SumoXMLAttr key) const
const std::vector< GNERerouterInterval > & getRerouterIntervals() const
get rerouter intervals
Position getPositionInView() const
Returns position of Rerouter in view.
void removeEdgeChild(GNEEdge *edge)
remove edge child
bool myOff
attribute to enable or disable inactive initially
const std::string & getParentName() const
Returns the name of the parent object (if any)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myProbability
probability of rerouter
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file
const std::vector< GNEEdge * > & getEdgeChilds() const
get edge chidls
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
GNERerouter(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNEEdge *> edges, const std::string &filename, double probability, bool off)
Constructor.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void commmitAdditionalGeometryMoved(double oldPosx, double oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
bool addRerouterInterval(const GNERerouterInterval &rerouterInterval)
add rerouter interval
std::string myFilename
filename of rerouter
A point in 2D or 3D with translation and scaling methods.
bool checkOverlapping(std::vector< GNERerouterInterval > rerouterIntervals)
check overlapping of a vector of rerouter intervals
bool setRerouterIntervals(const std::vector< GNERerouterInterval > &rerouterIntervals)
set rerouter intervals
void moveAdditionalGeometry(double offsetx, double offsety)
change the position of the rerouter geometry
A road/street connecting two junctions (netedit-version)
std::vector< GNEEdge * > myEdges
edges of Rerouter
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
An Element which don't belongs to GNENet but has influency in the simulation.
void addEdgeChild(GNEEdge *edge)
add edge child
void updateGeometry()
update pre-computed geometry information
Static storage of an output device and its base (abstract) implementation.
std::vector< GNERerouterInterval > myRerouterIntervals
set with the GNERerouterInterval
void openAdditionalDialog()
open GNERerouterDialog