142 if (canParse<double>(value)) {
144 double newTime = parse<double>(value);
156 return (counter <= 1);
161 return canParse<double>(value) && (parse<double>(value) >= 0);
192 myTime = parse<double>(value);
195 mySpeed = parse<double>(value);
~GNEVariableSpeedSignStep()
destructor
void updateGeometry(bool updateGrid)
update pre-computed geometry information
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
const std::string & getAdditionalID() const
returns Additional ID
GNEVariableSpeedSignStep(GNEVariableSpeedSignDialog *variableSpeedSignDialog)
default constructor
Stores the information about how to visualize structures.
double getTime() const
get time
void commitGeometryMoving(GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
void moveGeometry(const Position &offset)
change the position of the element geometry without saving in undoList
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setDefaultValues()
change all attributes of additional with their default values (note: this cannot be undo) ...
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
std::string getAttribute(SumoXMLAttr key) const
inherited from GNEAttributeCarrier
void changeAdditionalID(const std::string &newID)
change ID of additional
Position getPositionInView() const
Returns position of additional in view.
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A point in 2D or 3D with translation and scaling methods.
static bool isGenericParametersValid(const std::string &value)
check if given string can be parsed to a map/list of generic parameters
double mySpeed
speed in this timeStep
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
friend class GNEChange_Attribute
declare friend class
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
const std::string getID() const
function to support debugging
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
trigger: the time of the step
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string & getTagStr() const
get tag assigned to this object in string format
std::string getGenericParametersStr() const
return generic parameters in string format
bool isValidAdditionalID(const std::string &newID) const
check if a new additional ID is valid
parent of an additional element
std::string getParentName() const
Returns the name of the parent object.
const std::vector< GNEAdditional * > & getAdditionalChilds() const
return vector of additionals that have as Parent this edge (For example, Calibrators) ...
GNEAdditional * myFirstAdditionalParent
pointer to first Additional parent
trigger: a step description
virtual Position getPositionInView() const =0
Returns position of additional in view.