18 #ifndef QGSCOLORSCHEMEREGISTRY_H 19 #define QGSCOLORSCHEMEREGISTRY_H 21 #include "qgis_core.h" 51 void populateFromInstance();
59 void addDefaultSchemes();
67 void addUserSchemes();
90 QList<QgsColorScheme *> schemes()
const;
106 template<
class T>
void schemes( QList<T *> &schemeList )
109 QList<QgsColorScheme *> schemeInstanceList = schemes();
110 QList<QgsColorScheme *>::iterator schemeIt = schemeInstanceList.begin();
111 for ( ; schemeIt != schemeInstanceList.end(); ++schemeIt )
113 T *scheme =
dynamic_cast<T *
>( *schemeIt );
116 schemeList.push_back( scheme );
124 QList< QgsColorScheme * > mColorSchemeList;
Registry of color schemes.
void schemes(QList< T *> &schemeList)
Return color schemes of a specific type.
Abstract base class for color schemes.
SchemeFlag
Flags for controlling behavior of color scheme.