![]() |
SUMO - Simulation of Urban MObility
|
#include <GUIParameterTracker.h>
Public Member Functions | |
| GUIParameterTrackerPanel (FXComposite *c, GUIMainWindow &app, GUIParameterTracker &parent) | |
| Constructor. More... | |
| ~GUIParameterTrackerPanel () | |
| Destructor. More... | |
FOX-callbacks | |
| long | onConfigure (FXObject *, FXSelector, void *) |
| Called on window resizing. More... | |
| long | onPaint (FXObject *, FXSelector, void *) |
| Called if the window shall be repainted. More... | |
| long | onSimStep (FXObject *sender, FXSelector, void *) |
| Called on a simulation step. More... | |
Protected Member Functions | |
| GUIParameterTrackerPanel () | |
| FOX needs this. More... | |
Private Member Functions | |
| void | drawValue (TrackerValueDesc &desc, double namePos) |
| Draws a single value. More... | |
| void | drawValues () |
| Draws all values. More... | |
Private Attributes | |
| GUIMainWindow * | myApplication |
| The main application. More... | |
| int | myHeightInPixels |
| GUIParameterTracker * | myParent |
| The parent window. More... | |
| int | myWidthInPixels |
| the sizes of the window More... | |
Friends | |
| class | GUIParameterTracker |
| needed to update More... | |
This panel lies within the GUIParameterTracker being the main widget. It is the widget responsible for displaying the information while GUIParameterTracker only provides window-facilities.
Definition at line 120 of file GUIParameterTracker.h.
| GUIParameterTracker::GUIParameterTrackerPanel::GUIParameterTrackerPanel | ( | FXComposite * | c, |
| GUIMainWindow & | app, | ||
| GUIParameterTracker & | parent | ||
| ) |
Constructor.
| [in] | c | The parent composite |
| [in] | app | The main window |
| [in] | parent | The parent tracker window this view belongs to |
Definition at line 253 of file GUIParameterTracker.cpp.
| GUIParameterTracker::GUIParameterTrackerPanel::~GUIParameterTrackerPanel | ( | ) |
Destructor.
Definition at line 260 of file GUIParameterTracker.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 176 of file GUIParameterTracker.h.
|
private |
Draws a single value.
| [in] | desc | The tracked values to draw |
| [in] | namePos | Position to display the name at (currently unused) |
Definition at line 281 of file GUIParameterTracker.cpp.
References RGBColor::BLACK, RGBColor::blue(), GLHelper::drawText(), FONS_ALIGN_LEFT, FONS_ALIGN_MIDDLE, TrackerValueDesc::getAggregatedValues(), TrackerValueDesc::getAggregationSpan(), TrackerValueDesc::getColor(), TrackerValueDesc::getMax(), TrackerValueDesc::getMin(), TrackerValueDesc::getName(), TrackerValueDesc::getRange(), TrackerValueDesc::getRecordingBegin(), TrackerValueDesc::getYCenter(), RGBColor::green(), RGBColor::red(), time2string(), toString(), and TrackerValueDesc::unlockValues().
|
private |
Draws all values.
Definition at line 264 of file GUIParameterTracker.cpp.
| long GUIParameterTracker::GUIParameterTrackerPanel::onConfigure | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called on window resizing.
Definition at line 389 of file GUIParameterTracker.cpp.
Referenced by GUIParameterTracker::onCmdSave(), and GUIParameterTracker::onConfigure().
| long GUIParameterTracker::GUIParameterTrackerPanel::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called if the window shall be repainted.
Definition at line 413 of file GUIParameterTracker.cpp.
Referenced by GUIParameterTracker::onCmdSave(), and GUIParameterTracker::onPaint().
| long GUIParameterTracker::GUIParameterTrackerPanel::onSimStep | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Called on a simulation step.
|
friend |
needed to update
Definition at line 135 of file GUIParameterTracker.h.
|
private |
The main application.
Definition at line 172 of file GUIParameterTracker.h.
|
private |
Definition at line 169 of file GUIParameterTracker.h.
|
private |
The parent window.
Definition at line 166 of file GUIParameterTracker.h.
|
private |
the sizes of the window
Definition at line 169 of file GUIParameterTracker.h.