SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GUIParameterTracker::GUIParameterTrackerPanel Class Reference

#include <GUIParameterTracker.h>

Inheritance diagram for GUIParameterTracker::GUIParameterTrackerPanel:
FXGLCanvas

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, SUMOReal namePos)
 Draws a single value. More...
 
void drawValues ()
 Draws all values. More...
 

Private Attributes

GUIMainWindowmyApplication
 The main application. More...
 
int myHeightInPixels
 
GUIParameterTrackermyParent
 The parent window. More...
 
int myWidthInPixels
 the sizes of the window More...
 

Friends

class GUIParameterTracker
 needed to update More...
 

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 114 of file GUIParameterTracker.h.

Constructor & Destructor Documentation

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 257 of file GUIParameterTracker.cpp.

GUIParameterTracker::GUIParameterTrackerPanel::~GUIParameterTrackerPanel ( )

Destructor.

Definition at line 264 of file GUIParameterTracker.cpp.

GUIParameterTracker::GUIParameterTrackerPanel::GUIParameterTrackerPanel ( )
inlineprotected

FOX needs this.

Definition at line 170 of file GUIParameterTracker.h.

Member Function Documentation

void GUIParameterTracker::GUIParameterTrackerPanel::drawValues ( )
private

Draws all values.

Definition at line 268 of file GUIParameterTracker.cpp.

References pfSetScale(), pfSetScaleXY(), and SUMOReal.

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

Called on window resizing.

Definition at line 410 of file GUIParameterTracker.cpp.

Referenced by GUIParameterTracker::onConfigure().

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

Called if the window shall be repainted.

Definition at line 434 of file GUIParameterTracker.cpp.

Referenced by GUIParameterTracker::onPaint().

long GUIParameterTracker::GUIParameterTrackerPanel::onSimStep ( FXObject sender,
FXSelector  ,
void *   
)

Called on a simulation step.

Friends And Related Function Documentation

friend class GUIParameterTracker
friend

needed to update

Definition at line 129 of file GUIParameterTracker.h.

Field Documentation

GUIMainWindow* GUIParameterTracker::GUIParameterTrackerPanel::myApplication
private

The main application.

Definition at line 166 of file GUIParameterTracker.h.

int GUIParameterTracker::GUIParameterTrackerPanel::myHeightInPixels
private

Definition at line 163 of file GUIParameterTracker.h.

GUIParameterTracker* GUIParameterTracker::GUIParameterTrackerPanel::myParent
private

The parent window.

Definition at line 160 of file GUIParameterTracker.h.

int GUIParameterTracker::GUIParameterTrackerPanel::myWidthInPixels
private

the sizes of the window

Definition at line 163 of file GUIParameterTracker.h.


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