 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef GUIParameterTableWindow_h
19 #define GUIParameterTableWindow_h
120 void mkItem(
const char* name,
bool dynamic, std::string value);
130 void mkItem(
const char* name,
bool dynamic,
unsigned value);
140 void mkItem(
const char* name,
bool dynamic,
int value);
150 void mkItem(
const char* name,
bool dynamic,
long long int value);
160 void mkItem(
const char* name,
bool dynamic,
double value);
171 long onSimStep(FXObject*, FXSelector,
void*);
228 std::vector<GUIParameterTableItemInterface*>
myItems;
Interface to a single line in a parameter window.
A window containing a gl-object's parameter.
An upper class for objects with additional parameters.
FXTable * myTable
The table to display the information in.
GUIMainWindow * myApplication
The main application window.
static std::vector< GUIParameterTableWindow * > myContainer
The container of items that shall be updated.
static int numParams(const GUIGlObject *obj)
returns the number of parameters if obj is Parameterised and 0 otherwise
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
long onRightButtonPress(FXObject *, FXSelector, void *)
Shows a popup.
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
#define FOX_CONSTRUCTOR(classname)
long onTableDeselected(FXObject *, FXSelector, void *)
Does nothing.
GUIParameterTableWindow(GUIMainWindow &app, GUIGlObject &o, int noRows)
Constructor.
Instance of a single line in a parameter window.
void updateTable()
Updates the table.
long onTableSelected(FXObject *, FXSelector, void *)
Does nothing.
std::vector< GUIParameterTableItemInterface * > myItems
The list of table rows.
GUIGlObject * myObject
The object to get the information from.
FXMutex myLock
A lock assuring save updates in case of object deletion.
static FXMutex myGlobalContainerLock
The mutex used to avoid concurrent updates of the instance container.
long onSimStep(FXObject *, FXSelector, void *)
Updates the table due to a simulation step.
void removeObject(GUIGlObject *const o)
Lets this window know the object shown is being deleted.
unsigned myCurrentPos
The index of the next row to add - used while building.
static void updateAll()
Updates all instances.
~GUIParameterTableWindow()
Destructor.