 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
35 {}, {}, {}, {rerouterDialog->getEditedAdditional()}, {}, {}, {}, {}, {}, {}) {
43 {}, {}, {}, {rerouterParent}, {}, {}, {}, {}, {}, {}),
163 return canParse<SUMOTime>(value) && (parse<SUMOTime>(value) <
myEnd);
165 return canParse<SUMOTime>(value) && (parse<SUMOTime>(value) >
myBegin);
202 myBegin = parse<SUMOTime>(value);
205 myEnd = parse<SUMOTime>(value);
bool isAttributeEnabled(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
An Element which don't belongs to GNENet but has influency in the simulation.
std::string getParametersStr() const
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
const std::string & getAdditionalID() const
~GNERerouterInterval()
destructor
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
Dialog for edit rerouters.
std::string getParentName() const
Returns the name of the parent object.
double getAttributeDouble(SumoXMLAttr key) const
GNERerouterInterval(GNERerouterDialog *rerouterDialog)
constructor (Used in GNERerouterDialog)
void changeAdditionalID(const std::string &newID)
change ID of additional
SUMOTime myEnd
end timeStep
void updateGeometry()
update pre-computed geometry information
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
@ SUMO_ATTR_BEGIN
weights: time range begin
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
friend class GNEChange_Attribute
declare friend class
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
GNENet * getNet() const
get the net object
const std::vector< GNEAdditional * > & getParentAdditionals() const
get parent additionals
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
std::string getAttribute(SumoXMLAttr key) const
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
SUMOTime myBegin
begin timeStep
A class that stores a 2D geometrical boundary.
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
Position getPositionInView() const
Returns position of additional in view.
A point in 2D or 3D with translation and scaling methods.
std::string time2string(SUMOTime t)
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void setParametersStr(const std::string ¶msString)
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static bool areParametersValid(const std::string &value, bool report=false)
check if given string can be parsed to a parameters map "key1=value1|key2=value2|....
@ SUMO_ATTR_END
weights: time range end
@ SUMO_TAG_INTERVAL
an aggreagated-output interval
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
const std::string & getTagStr() const
get tag assigned to this object in string format
Stores the information about how to visualize structures.
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
const std::vector< GNEAdditional * > & getChildAdditionals() const
return child additionals
@ GNE_ATTR_PARENT
parent of an additional element