20 #ifndef GNEVariableSpeedSignal_h 21 #define GNEVariableSpeedSignal_h 54 GNEVariableSpeedSignal(
const std::string&
id,
GNEViewNet* viewNet,
Position pos, std::vector<GNELane*> lanes,
const std::string& filename,
const std::map<SUMOTime, SUMOReal>& VSSValues,
bool blocked);
std::string getAttribute(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 ...
std::map< SUMOTime, SUMOReal > getVariableSpeedSignalSteps() const
get values of variable speed signal
void moveAdditionalGeometry(SUMOReal offsetx, SUMOReal offsety)
change the position of the rerouter geometry
void setFilename(std::string filename)
set filename of rerouter
GNEVariableSpeedSignal & operator=(const GNEVariableSpeedSignal &)
Invalidated assignment operator.
Stores the information about how to visualize structures.
void updateGeometry()
update pre-computed geometry information
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Position getPositionInView() const
Returns position of Variable Speed Signal in view.
void setVariableSpeedSignalSteps(const std::map< SUMOTime, SUMOReal > &vssValues)
set values of variable speed signal
void commmitAdditionalGeometryMoved(SUMOReal oldPosx, SUMOReal oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
An Element wich group additionalSet elements.
GNEVariableSpeedSignal(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNELane *> lanes, const std::string &filename, const std::map< SUMOTime, SUMOReal > &VSSValues, bool blocked)
Constructor.
void writeAdditional(OutputDevice &device, const std::string ¤tDirectory)
writte additional element into a xml file
A point in 2D or 3D with translation and scaling methods.
std::map< SUMOTime, SUMOReal > myVSSValues
values of variable speed signal
const std::string & getParentName() const
Returns the name of the parent object (if any)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string getFilename() const
get filename of rerouter
std::string myFilename
filename of rerouter
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Static storage of an output device and its base (abstract) implementation.
void openAdditionalDialog()
open GNEVariableSpeedSignalDialog
bool insertStep(const SUMOTime time, const SUMOReal speed)
insert a new step in variable speed signal
~GNEVariableSpeedSignal()
Destructor.
bool mySaveInFilename
enable or disable save in external filename