Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIParameterTableItemInterface Class Referenceabstract

Interface to a single line in a parameter window. More...

#include <GUIParameterTableItem.h>

Inheritance diagram for GUIParameterTableItemInterface:
[legend]

Public Member Functions

virtual ~GUIParameterTableItemInterface ()
 Destructor.
 
Methods to be implemented by derived classes
virtual bool dynamic () const =0
 Returns the information whether the value changes over simulation time.
 
virtual void update ()=0
 Forces an update of the value.
 
virtual ValueSource< double > * getdoubleSourceCopy () const =0
 Returns a double-typed copy of the value-source.
 
virtual const std::string & getName () const =0
 Returns the name of the value.
 

Detailed Description

Interface to a single line in a parameter window.

Because a single line in a parameter window may display different kinds of information (different value types, dynamic or static information), an interface is needed in order to allow a common access to the functions of a line - basically the possibility to open a tracker (GUIParameterTracker) for the stored, dynamic value.

The implementation is done by GUIParameterTableItem.

See also
GUIParameterTracker
GUIParameterTableItem

Definition at line 54 of file GUIParameterTableItem.h.

Constructor & Destructor Documentation

◆ ~GUIParameterTableItemInterface()

virtual GUIParameterTableItemInterface::~GUIParameterTableItemInterface ( )
inlinevirtual

Destructor.

Definition at line 57 of file GUIParameterTableItem.h.

Member Function Documentation

◆ dynamic()

virtual bool GUIParameterTableItemInterface::dynamic ( ) const
pure virtual

Returns the information whether the value changes over simulation time.

Implemented in GUIParameterTableItem< T >.

Referenced by GUIParameterTableWindow::onLeftBtnPress(), and GUIParameterTableWindow::onRightButtonPress().

Here is the caller graph for this function:

◆ getdoubleSourceCopy()

virtual ValueSource< double > * GUIParameterTableItemInterface::getdoubleSourceCopy ( ) const
pure virtual

Returns a double-typed copy of the value-source.

Implemented in GUIParameterTableItem< T >.

Referenced by GUIParameterTableWindow::onLeftBtnPress(), and GUIParameterTableWindow::onRightButtonPress().

Here is the caller graph for this function:

◆ getName()

virtual const std::string & GUIParameterTableItemInterface::getName ( ) const
pure virtual

Returns the name of the value.

Implemented in GUIParameterTableItem< T >.

Referenced by GUIParameterTableWindow::onLeftBtnPress(), and GUIParameterTableWindow::onRightButtonPress().

Here is the caller graph for this function:

◆ update()

virtual void GUIParameterTableItemInterface::update ( )
pure virtual

Forces an update of the value.

Implemented in GUIParameterTableItem< T >.


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