Eclipse SUMO - Simulation of Urban MObility
GUIParam_PopupMenuInterface Class Reference

A popup-menu for dynamic patameter table entries. More...

#include <GUIParam_PopupMenu.h>

Inheritance diagram for GUIParam_PopupMenuInterface:
[legend]
Collaboration diagram for GUIParam_PopupMenuInterface:
[legend]

Public Member Functions

 GUIParam_PopupMenuInterface (GUIMainWindow &app, GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName, ValueSource< double > *src)
 Constructor. More...
 
 ~GUIParam_PopupMenuInterface ()
 Destructor. More...
 
FOX-callbacks
long onCmdOpenTracker (FXObject *, FXSelector, void *)
 Called when a tracker for the value shall be opened. More...
 

Protected Attributes

GUIMainWindowmyApplication
 The main application window; holder of some needed values. More...
 
GUIGlObjectmyObject
 The object the table displays. More...
 
GUIParameterTableWindowmyParentWindow
 The parameter window this popup was initiated by. More...
 
ValueSource< double > * mySource
 The source of the value. More...
 
std::string myVarName
 The name of the value. More...
 

Detailed Description

A popup-menu for dynamic patameter table entries.

Definition at line 46 of file GUIParam_PopupMenu.h.

Constructor & Destructor Documentation

◆ GUIParam_PopupMenuInterface()

GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface ( GUIMainWindow app,
GUIParameterTableWindow parentWindow,
GUIGlObject o,
const std::string &  varName,
ValueSource< double > *  src 
)

Constructor.

Parameters
[in]appThe main application window
[in]parentWindowThe parent window (the table the popup belongs to)
[in]oThe object represented by the table
[in]varNameThe name of the value
[in]srcThe value source

Definition at line 48 of file GUIParam_PopupMenu.cpp.

◆ ~GUIParam_PopupMenuInterface()

GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface ( )

Destructor.

Definition at line 56 of file GUIParam_PopupMenu.cpp.

References mySource.

Member Function Documentation

◆ onCmdOpenTracker()

long GUIParam_PopupMenuInterface::onCmdOpenTracker ( FXObject *  ,
FXSelector  ,
void *   
)

Called when a tracker for the value shall be opened.

Builds a new GUIParameterTracker adding the stored value to it. Initialises this tracker, then.

Definition at line 62 of file GUIParam_PopupMenu.cpp.

References GUIParameterTracker::addTracked(), GUIParameterTracker::addTrackedMultiplot(), RGBColor::BLACK, ValueSource< T >::copy(), GUIParameterTracker::create(), GUIMainWindow::getCurrentSimTime(), GUIGlObject::getFullName(), GUIMainWindow::getTrackerInterval(), myApplication, myObject, mySource, and myVarName.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

Field Documentation

◆ myApplication

GUIMainWindow* GUIParam_PopupMenuInterface::myApplication
protected

The main application window; holder of some needed values.

Definition at line 87 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker().

◆ myObject

GUIGlObject* GUIParam_PopupMenuInterface::myObject
protected

The object the table displays.

Definition at line 81 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker().

◆ myParentWindow

GUIParameterTableWindow* GUIParam_PopupMenuInterface::myParentWindow
protected

The parameter window this popup was initiated by.

Definition at line 84 of file GUIParam_PopupMenu.h.

◆ mySource

ValueSource<double>* GUIParam_PopupMenuInterface::mySource
protected

The source of the value.

Definition at line 93 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker(), and ~GUIParam_PopupMenuInterface().

◆ myVarName

std::string GUIParam_PopupMenuInterface::myVarName
protected

The name of the value.

Definition at line 90 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker().


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