Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIParameterTracker::GUIParameterTrackerPanel Class Reference

#include <GUIParameterTracker.h>

Inheritance diagram for GUIParameterTracker::GUIParameterTrackerPanel:
[legend]
Collaboration diagram for GUIParameterTracker::GUIParameterTrackerPanel:
[legend]

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
GUIParameterTrackermyParent
 The parent window.
int myWidthInPixels
 the sizes of the window

Friends

class GUIParameterTracker
 needed to update

Detailed Description

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.

Constructor & Destructor Documentation

◆ GUIParameterTrackerPanel()

GUIParameterTracker::GUIParameterTrackerPanel::GUIParameterTrackerPanel ( FXComposite * c,
GUIMainWindow & app,
GUIParameterTracker & parent )

Constructor.

Parameters
[in]cThe parent composite
[in]appThe main window
[in]parentThe parent tracker window this view belongs to

Definition at line 289 of file GUIParameterTracker.cpp.

References GUIParameterTracker, GUIParameterTrackerPanel(), and myParent.

Referenced by GUIParameterTrackerPanel().

Here is the caller graph for this function:

◆ ~GUIParameterTrackerPanel()

GUIParameterTracker::GUIParameterTrackerPanel::~GUIParameterTrackerPanel ( )

Destructor.

Definition at line 296 of file GUIParameterTracker.cpp.

Member Function Documentation

◆ drawValue()

void GUIParameterTracker::GUIParameterTrackerPanel::drawValue ( TrackerValueDesc & desc,
const RGBColor & col,
int index )
private

◆ drawValues()

void GUIParameterTracker::GUIParameterTrackerPanel::drawValues ( )
private

Draws all values.

Definition at line 300 of file GUIParameterTracker.cpp.

References drawValue(), GUIParameterTracker::myColors, and myParent.

Referenced by onPaint().

Here is the caller graph for this function:

◆ onConfigure()

long GUIParameterTracker::GUIParameterTrackerPanel::onConfigure ( FXObject * ,
FXSelector ,
void *  )

Called on window resizing.

Definition at line 455 of file GUIParameterTracker.cpp.

References myHeightInPixels, myParent, and myWidthInPixels.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMouseMove()

long GUIParameterTracker::GUIParameterTrackerPanel::onMouseMove ( FXObject * ,
FXSelector ,
void * ptr )

called on mouse movement (for updating moused value)

Definition at line 512 of file GUIParameterTracker.cpp.

References myMouseX.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long GUIParameterTracker::GUIParameterTrackerPanel::onPaint ( FXObject * ,
FXSelector ,
void *  )

Called if the window shall be repainted.

Definition at line 480 of file GUIParameterTracker.cpp.

References drawValues(), myHeightInPixels, and myWidthInPixels.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ GUIParameterTracker

friend class GUIParameterTracker
friend

needed to update

Definition at line 134 of file GUIParameterTracker.h.

References GUIParameterTracker.

Referenced by GUIParameterTracker, and GUIParameterTrackerPanel().

Field Documentation

◆ myHeightInPixels

int GUIParameterTracker::GUIParameterTrackerPanel::myHeightInPixels
private

Definition at line 168 of file GUIParameterTracker.h.

Referenced by drawValue(), onConfigure(), and onPaint().

◆ myMouseX

double GUIParameterTracker::GUIParameterTrackerPanel::myMouseX
private

latest mouse position

Definition at line 171 of file GUIParameterTracker.h.

Referenced by drawValue(), and onMouseMove().

◆ myParent

GUIParameterTracker* GUIParameterTracker::GUIParameterTrackerPanel::myParent
private

The parent window.

Definition at line 165 of file GUIParameterTracker.h.

Referenced by drawValue(), drawValues(), GUIParameterTrackerPanel(), and onConfigure().

◆ myWidthInPixels

int GUIParameterTracker::GUIParameterTrackerPanel::myWidthInPixels
private

the sizes of the window

Definition at line 168 of file GUIParameterTracker.h.

Referenced by drawValue(), onConfigure(), and onPaint().


The documentation for this class was generated from the following files: