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.

◆ ~GUIParameterTrackerPanel()

GUIParameterTracker::GUIParameterTrackerPanel::~GUIParameterTrackerPanel ( )

Destructor.

Definition at line 296 of file GUIParameterTracker.cpp.

Member Function Documentation

◆ drawValue()

◆ drawValues()

void GUIParameterTracker::GUIParameterTrackerPanel::drawValues ( )
private

Draws all values.

Definition at line 300 of file GUIParameterTracker.cpp.

References GUIParameterTracker::myColors.

◆ onConfigure()

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().

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.

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.

Referenced by FXDEFMAP(), and GUIParameterTracker::onPaint().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ GUIParameterTracker

friend class GUIParameterTracker
friend

needed to update

Definition at line 134 of file GUIParameterTracker.h.

Field Documentation

◆ myHeightInPixels

int GUIParameterTracker::GUIParameterTrackerPanel::myHeightInPixels
private

Definition at line 168 of file GUIParameterTracker.h.

◆ myMouseX

double GUIParameterTracker::GUIParameterTrackerPanel::myMouseX
private

latest mouse position

Definition at line 171 of file GUIParameterTracker.h.

◆ myParent

GUIParameterTracker* GUIParameterTracker::GUIParameterTrackerPanel::myParent
private

The parent window.

Definition at line 165 of file GUIParameterTracker.h.

◆ myWidthInPixels

int GUIParameterTracker::GUIParameterTrackerPanel::myWidthInPixels
private

the sizes of the window

Definition at line 168 of file GUIParameterTracker.h.


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