20 #ifndef GNEVariableSpeedSign_h 21 #define GNEVariableSpeedSign_h 54 GNEVariableSpeedSign(
const std::string&
id,
GNEViewNet* viewNet,
Position pos, std::vector<GNELane*> lanes,
const std::string& filename,
const std::vector<GNEVariableSpeedSignStep>& vssValues);
85 const std::vector<GNEVariableSpeedSignStep>&
getSteps()
const;
138 std::vector<GNEVariableSpeedSignStep>
mySteps;
const std::string & getFilename() const
get filename of variable speed sign
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
Stores the information about how to visualize structures.
void openAdditionalDialog()
open GNEVariableSpeedSignDialog
Position getPositionInView() const
Returns position of Variable Speed Signal in view.
void commmitAdditionalGeometryMoved(double oldPosx, double oldPosy, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
A point in 2D or 3D with translation and scaling methods.
bool mySaveInFilename
enable or disable save in external filename
void setVariableSpeedSignSteps(const std::vector< GNEVariableSpeedSignStep > &steps)
set values of variable speed signal
void addStep(const GNEVariableSpeedSignStep &step)
insert a new step in variable speed signal
void updateGeometry()
update pre-computed geometry information
std::string getAttribute(SumoXMLAttr key) const
GNEVariableSpeedSign & operator=(const GNEVariableSpeedSign &)
Invalidated assignment operator.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
GNEVariableSpeedSign(const std::string &id, GNEViewNet *viewNet, Position pos, std::vector< GNELane *> lanes, const std::string &filename, const std::vector< GNEVariableSpeedSignStep > &vssValues)
Constructor.
const std::vector< GNEVariableSpeedSignStep > & getSteps() const
get values of variable speed signal
std::vector< GNEVariableSpeedSignStep > mySteps
values of variable speed signal
An Element which don't belongs to GNENet but has influency in the simulation.
void setFilename(const std::string &filename)
set filename of variable speed sign
~GNEVariableSpeedSign()
Destructor.
Static storage of an output device and its base (abstract) implementation.
std::string myFilename
filename of variable speed sign
void moveAdditionalGeometry(double offsetx, double offsety)
change the position of the variable speed sign geometry
const std::string & getParentName() const
Returns the name of the parent object.
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file