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 getFilename() const
get filename of rerouter
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
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.
Position getPositionInView() const
Returns position of Variable Speed Signal in view.
void updateGeometry()
update pre-computed geometry information
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
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.
void writeAdditional(OutputDevice &device, const std::string ¤tDirectory)
writte additional element into a xml file
std::string getAttribute(SumoXMLAttr key) const
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A point in 2D or 3D with translation and scaling methods.
std::map< SUMOTime, SUMOReal > myVSSValues
values of variable speed signal
std::map< SUMOTime, SUMOReal > getVariableSpeedSignalSteps() const
get values of variable speed signal
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string myFilename
filename of rerouter
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.
const std::string & getParentName() const
Returns the name of the parent object (if any)
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