SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 (FXComboBox &cb)
 Fills the given combobox with the names of available colorings. More...
 
size_t getActive () const
 
T & getScheme ()
 
const T & getScheme () const
 
T * getSchemeByName (std::string name)
 
 GUIPropertySchemeStorage ()
 Constructor. More...
 
bool operator== (const GUIPropertySchemeStorage &c) const
 
void save (OutputDevice &dev) const
 
void setActive (size_t scheme)
 
size_t size () const
 
virtual ~GUIPropertySchemeStorage ()
 Destructor. More...
 

Protected Attributes

size_t 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 56 of file GUIPropertySchemeStorage.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 59 of file GUIPropertySchemeStorage.h.

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

Destructor.

Definition at line 62 of file GUIPropertySchemeStorage.h.

Member Function Documentation

template<class T>
void GUIPropertySchemeStorage< T >::addScheme ( scheme)
inline
template<class T>
void GUIPropertySchemeStorage< T >::fill ( FXComboBox &  cb)
inline

Fills the given combobox with the names of available colorings.

Definition at line 65 of file GUIPropertySchemeStorage.h.

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

Definition at line 86 of file GUIPropertySchemeStorage.h.

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

Definition at line 90 of file GUIPropertySchemeStorage.h.

Referenced by GUISettingsHandler::myStartElement().

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

Definition at line 105 of file GUIPropertySchemeStorage.h.

template<class T>
void GUIPropertySchemeStorage< T >::save ( OutputDevice dev) const
inline

Definition at line 99 of file GUIPropertySchemeStorage.h.

Referenced by GUIVisualizationSettings::save().

template<class T>
void GUIPropertySchemeStorage< T >::setActive ( size_t  scheme)
inline
template<class T>
size_t GUIPropertySchemeStorage< T >::size ( ) const
inline

Definition at line 114 of file GUIPropertySchemeStorage.h.

Field Documentation


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