Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIPropertySchemeStorage< T > Class Template Reference

Base class for coloring. Allows changing the used colors and sets the used color in dependence to a value. More...

#include <GUIPropertySchemeStorage.h>

Public Member Functions

void addScheme (T scheme)
 
void fill (MFXComboBoxIcon &cb)
 Fills the given combobox with the names of available colorings.
 
int getActive () const
 
T & getScheme ()
 
const T & getScheme () const
 
T * getSchemeByName (std::string name)
 
const std::vector< T > & getSchemes () const
 
 GUIPropertySchemeStorage ()
 Constructor.
 
bool operator== (const GUIPropertySchemeStorage &c) const
 
void save (OutputDevice &dev, const std::string &prefix="") const
 
void setActive (int scheme)
 
void setSchemeByName (std::string name)
 
int size () const
 
virtual ~GUIPropertySchemeStorage ()
 Destructor.
 

Protected Attributes

int myActiveScheme
 
std::vector< T > mySchemes
 

Detailed Description

template<class T>
class GUIPropertySchemeStorage< T >

Base class for coloring. Allows changing the used colors and sets the used color in dependence to a value.

Definition at line 49 of file GUIPropertySchemeStorage.h.

Constructor & Destructor Documentation

◆ GUIPropertySchemeStorage()

Constructor.

Definition at line 52 of file GUIPropertySchemeStorage.h.

◆ ~GUIPropertySchemeStorage()

template<class T >
virtual GUIPropertySchemeStorage< T >::~GUIPropertySchemeStorage ( )
inlinevirtual

Destructor.

Definition at line 55 of file GUIPropertySchemeStorage.h.

Member Function Documentation

◆ addScheme()

template<class T >
void GUIPropertySchemeStorage< T >::addScheme ( scheme)
inline

Definition at line 118 of file GUIPropertySchemeStorage.h.

References GUIPropertySchemeStorage< T >::mySchemes.

Referenced by GUIVisualizationSettings::initNeteditDefaults(), and GUIVisualizationSettings::initSumoGuiDefaults().

Here is the caller graph for this function:

◆ fill()

◆ getActive()

template<class T >
int GUIPropertySchemeStorage< T >::getActive ( ) const
inline

◆ getScheme() [1/2]

◆ getScheme() [2/2]

template<class T >
const T & GUIPropertySchemeStorage< T >::getScheme ( ) const
inline

◆ getSchemeByName()

template<class T >
T * GUIPropertySchemeStorage< T >::getSchemeByName ( std::string  name)
inline

Definition at line 89 of file GUIPropertySchemeStorage.h.

References GUIPropertySchemeStorage< T >::mySchemes.

Referenced by GUISettingsHandler::myStartElement().

Here is the caller graph for this function:

◆ getSchemes()

template<class T >
const std::vector< T > & GUIPropertySchemeStorage< T >::getSchemes ( ) const
inline

Definition at line 85 of file GUIPropertySchemeStorage.h.

References GUIPropertySchemeStorage< T >::mySchemes.

Referenced by GNEEdge::drawEdgeGeometryPoints(), GNEEdge::drawEdgeShape(), GNEEdge::drawEndGeometryPoint(), GNELane::drawStartEndGeometryPoints(), GNEEdge::drawStartGeometryPoint(), and GNECrossing::getCrossingColor().

Here is the caller graph for this function:

◆ operator==()

template<class T >
bool GUIPropertySchemeStorage< T >::operator== ( const GUIPropertySchemeStorage< T > &  c) const
inline

◆ save()

template<class T >
void GUIPropertySchemeStorage< T >::save ( OutputDevice dev,
const std::string &  prefix = "" 
) const
inline

Definition at line 107 of file GUIPropertySchemeStorage.h.

References GUIPropertySchemeStorage< T >::mySchemes.

Referenced by GUIVisualizationSettings::save().

Here is the caller graph for this function:

◆ setActive()

template<class T >
void GUIPropertySchemeStorage< T >::setActive ( int  scheme)
inline

Definition at line 67 of file GUIPropertySchemeStorage.h.

References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.

Referenced by GUISettingsHandler::myStartElement(), GUIDialog_ViewSettings::onCmdColorChange(), GUIApplicationWindow::onCmdEditChosen(), and GUIViewTraffic::onCmdShowReachability().

Here is the caller graph for this function:

◆ setSchemeByName()

template<class T >
void GUIPropertySchemeStorage< T >::setSchemeByName ( std::string  name)
inline

Definition at line 98 of file GUIPropertySchemeStorage.h.

References GUIPropertySchemeStorage< T >::myActiveScheme, and GUIPropertySchemeStorage< T >::mySchemes.

Referenced by GUICompleteSchemeStorage::init().

Here is the caller graph for this function:

◆ size()

template<class T >
int GUIPropertySchemeStorage< T >::size ( ) const
inline

Field Documentation

◆ myActiveScheme

◆ mySchemes


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