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.
Position myPosition
position of rerouter in view
const std::string & getParentName() const
Returns the name of the parent object (if any)
void removeEdgeChild(GNEEdge *edge)
remove edge child
bool myOff
attribute to enable or disable inactive initially
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in allGNEAttributeCarrier.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
double myProbability
probability of rerouter
void moveGeometry(const Position &newPosition)
change the position of the element geometry without saving in undoList
void commitGeometryMoving(const Position &oldPos, 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 ...
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void writeAdditional(OutputDevice &device, bool volatileOptionsEnabled) const
writte additional element into a xml file
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
const std::vector< GNERerouterInterval > & getRerouterIntervals() const
get rerouter intervals
bool setRerouterIntervals(const std::vector< GNERerouterInterval > &rerouterIntervals)
set rerouter intervals
const std::vector< GNEEdge * > & getEdgeChilds() const
get edge chidls
GNERerouter(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNEEdge * > edges, const std::string &filename, double probability, bool off)
Constructor.
A road/street connecting two junctions (netedit-version)
std::vector< GNEEdge * > myEdges
edges of Rerouter
An Element which don't belongs to GNENet but has influency in the simulation.
void addEdgeChild(GNEEdge *edge)
add edge child
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void updateGeometry()
update pre-computed geometry information
Position getPositionInView() const
Returns position of additional in view.
Static storage of an output device and its base (abstract) implementation.
std::vector< GNERerouterInterval > myRerouterIntervals
set with the GNERerouterInterval
void openAdditionalDialog()
open GNERerouterDialog