![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GUIParameterTracker.h>
Public Member Functions | |
GUIParameterTrackerPanel (FXComposite *c, GUIMainWindow &app, GUIParameterTracker &parent) | |
Constructor. | |
~GUIParameterTrackerPanel () | |
Destructor. | |
FOX-callbacks | |
long | onConfigure (FXObject *, FXSelector, void *) |
Called on window resizing. | |
long | onPaint (FXObject *, FXSelector, void *) |
Called if the window shall be repainted. | |
long | onMouseMove (FXObject *, FXSelector, void *) |
called on mouse movement (for updating moused value) | |
Private Member Functions | |
void | drawValue (TrackerValueDesc &desc, const RGBColor &col, int index) |
Draws a single value. | |
void | drawValues () |
Draws all values. | |
Private Attributes | |
int | myHeightInPixels |
double | myMouseX |
latest mouse position | |
GUIParameterTracker * | myParent |
The parent window. | |
int | myWidthInPixels |
the sizes of the window | |
Friends | |
class | GUIParameterTracker |
needed to update | |
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.