 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
36 {}, {}, {}, {variableSpeedSignDialog->getEditedAdditional()}, {}, {}, {}, {}, {}, {}) {
40 if (getParentAdditionals().at(0)->getChildAdditionals().size() > 0) {
41 myTime = getParentAdditionals().at(0)->getChildAdditionals().back()->getAttributeDouble(
SUMO_ATTR_TIME) + 1;
50 {}, {}, {}, {variableSpeedSignParent}, {}, {}, {}, {}, {}, {}),
167 if (canParse<double>(value)) {
169 double newTime = parse<double>(value);
181 return (counter <= 1);
186 return canParse<double>(value);
223 myTime = parse<double>(value);
226 mySpeed = parse<double>(value);
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
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".
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
const std::string & getAdditionalID() const
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(....
void changeAdditionalID(const std::string &newID)
change ID of additional
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
~GNEVariableSpeedSignStep()
destructor
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
std::string getParentName() const
Returns the name of the parent object.
GNEVariableSpeedSignStep(GNEVariableSpeedSignDialog *variableSpeedSignDialog)
default constructor
void splitEdgeGeometry(const double splitPosition, const GNENetElement *originalElement, const GNENetElement *newElement, GNEUndoList *undoList)
split geometry
A class that stores a 2D geometrical boundary.
bool isAttributeEnabled(SumoXMLAttr key) const
@ GNE_ATTR_PARAMETERS
parameters "key1=value1|key2=value2|...|keyN=valueN"
@ SUMO_TAG_STEP
trigger: a step description
A point in 2D or 3D with translation and scaling methods.
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
@ SUMO_ATTR_TIME
trigger: the time of the step
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
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|....
double getAttributeDouble(SumoXMLAttr key) const
double mySpeed
speed in this timeStep
Position getPositionInView() const
Returns position of additional in view.
void updateGeometry()
update pre-computed geometry information
double getTime() const
get time
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.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
const std::vector< GNEAdditional * > & getChildAdditionals() const
return child additionals
@ GLO_VSS
a Variable Speed Sign
@ GNE_ATTR_PARENT
parent of an additional element