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

template<class T>
GUIPropertySchemeStorage< T >::GUIPropertySchemeStorage ( )
inline

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 ( T scheme)
inline

Definition at line 118 of file GUIPropertySchemeStorage.h.

◆ fill()

template<class T>
void GUIPropertySchemeStorage< T >::fill ( MFXComboBoxIcon & cb)
inline

Fills the given combobox with the names of available colorings.

Definition at line 58 of file GUIPropertySchemeStorage.h.

◆ getActive()

◆ getScheme() [1/2]

◆ getScheme() [2/2]

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

Definition at line 81 of file GUIPropertySchemeStorage.h.

◆ getSchemeByName()

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

Definition at line 89 of file GUIPropertySchemeStorage.h.

◆ getSchemes()

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

Definition at line 85 of file GUIPropertySchemeStorage.h.

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

Definition at line 113 of file GUIPropertySchemeStorage.h.

◆ save()

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

Definition at line 107 of file GUIPropertySchemeStorage.h.

◆ setActive()

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

Definition at line 67 of file GUIPropertySchemeStorage.h.

Referenced by GUIDialog_ViewSettings::onCmdColorChange(), and GUIApplicationWindow::onCmdEditChosen().

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.

Referenced by GUICompleteSchemeStorage::init().

Here is the caller graph for this function:

◆ size()

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

Definition at line 122 of file GUIPropertySchemeStorage.h.

Field Documentation

◆ myActiveScheme

template<class T>
int GUIPropertySchemeStorage< T >::myActiveScheme
protected

◆ mySchemes

template<class T>
std::vector<T> GUIPropertySchemeStorage< T >::mySchemes
protected

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