![]() |
Eclipse 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 | onMouseMove (FXObject *, FXSelector, void *) |
| called on mouse movement (for updating moused value) More... | |
Private Member Functions | |
| void | drawValue (TrackerValueDesc &desc, const RGBColor &col, int index) |
| Draws a single value. More... | |
| void | drawValues () |
| Draws all values. More... | |
Private Attributes | |
| int | myHeightInPixels |
| double | myMouseX |
| latest mouse position More... | |
| 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 119 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 289 of file GUIParameterTracker.cpp.
| GUIParameterTracker::GUIParameterTrackerPanel::~GUIParameterTrackerPanel | ( | ) |
Destructor.
Definition at line 296 of file GUIParameterTracker.cpp.
|
private |
Draws a single value.
| [in] | desc | The tracked values to draw |
| [in] | index | Mulitplot index |
Definition at line 316 of file GUIParameterTracker.cpp.
References RGBColor::BLACK, RGBColor::BLUE, RGBColor::changedAlpha(), RGBColor::changedBrightness(), GLHelper::drawFilledCircle(), GLHelper::drawText(), FONS_ALIGN_LEFT, FONS_ALIGN_MIDDLE, TrackerValueDesc::getAggregatedValues(), TrackerValueDesc::getAggregationSpan(), TrackerValueDesc::getMax(), TrackerValueDesc::getMin(), TrackerValueDesc::getName(), TrackerValueDesc::getRange(), TrackerValueDesc::getRecordingBegin(), TrackerValueDesc::getYCenter(), GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, GLHelper::setColor(), time2string(), toString(), and TrackerValueDesc::unlockValues().
|
private |
Draws all values.
Definition at line 300 of file GUIParameterTracker.cpp.
References GUIParameterTracker::myColors.
| long GUIParameterTracker::GUIParameterTrackerPanel::onConfigure | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called on window resizing.
Definition at line 455 of file GUIParameterTracker.cpp.
Referenced by FXDEFMAP(), and GUIParameterTracker::onConfigure().
| long GUIParameterTracker::GUIParameterTrackerPanel::onMouseMove | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
called on mouse movement (for updating moused value)
Definition at line 512 of file GUIParameterTracker.cpp.
Referenced by FXDEFMAP().
| long GUIParameterTracker::GUIParameterTrackerPanel::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called if the window shall be repainted.
Definition at line 480 of file GUIParameterTracker.cpp.
Referenced by FXDEFMAP(), and GUIParameterTracker::onPaint().
|
friend |
needed to update
Definition at line 134 of file GUIParameterTracker.h.
|
private |
Definition at line 168 of file GUIParameterTracker.h.
|
private |
latest mouse position
Definition at line 171 of file GUIParameterTracker.h.
|
private |
The parent window.
Definition at line 165 of file GUIParameterTracker.h.
|
private |
the sizes of the window
Definition at line 168 of file GUIParameterTracker.h.