 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GUIParameterTableItem_h
18 #define GUIParameterTableItem_h
75 virtual const std::string&
getName()
const = 0;
200 return mySource->makedoubleReturningCopy();
Interface to a single line in a parameter window.
void update()
Resets the value if it's dynamic.
virtual bool dynamic() const =0
Returns the information whether the value changes over simulation time.
ValueSource< T > * getSourceCopy() const
Returns a copy of the source if the value is dynamic.
ValueSource< double > * getdoubleSourceCopy() const
Returns a double-typed copy of the source if the value is dynamic.
FXTable * myTable
The table this entry belongs to.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
FXint myTablePosition
The position within the table.
virtual const std::string & getName() const =0
Returns the name of the value.
virtual T getValue() const =0
const std::string & getName() const
Returns the name of this value.
Instance of a single line in a parameter window.
void init(bool dynamic, std::string value)
Initialises the line.
bool myAmDynamic
Information whether the value may change.
GUIParameterTableItem(FXTable *table, unsigned pos, const std::string &name, bool dynamic, T value)
Constructor for non-changing (static) values.
T myValue
A backup of the value to avoid the redrawing when nothing has changed.
std::string myName
The name of this value.
ValueSource< T > * mySource
The source to gain new values from; this source is==0 if the values are not dynamic.
~GUIParameterTableItem()
Destructor.
virtual ~GUIParameterTableItemInterface()
Destructor.
virtual ValueSource< double > * getdoubleSourceCopy() const =0
Returns a double-typed copy of the value-source.
virtual void update()=0
Forces an update of the value.
GUIParameterTableItem(FXTable *table, unsigned pos, const std::string &name, bool dynamic, ValueSource< T > *src)
Constructor for changing (dynamic) values.
bool dynamic() const
Returns the information whether this item may change over time.