QGIS API Documentation
2.6.0-Brighton
|
Registry of renderers. More...
#include <qgsrendererv2registry.h>
Public Member Functions | |
bool | addRenderer (QgsRendererV2AbstractMetadata *metadata) |
add a renderer to registry. Takes ownership of the metadata object. | |
bool | removeRenderer (QString rendererName) |
remove renderer from registry | |
QgsRendererV2AbstractMetadata * | rendererMetadata (QString rendererName) |
get metadata for particular renderer. Returns NULL if not found in registry. | |
QStringList | renderersList () |
return a list of available renderers |
Static Public Member Functions | |
static QgsRendererV2Registry * | instance () |
Protected Member Functions | |
QgsRendererV2Registry () | |
protected constructor | |
~QgsRendererV2Registry () |
Protected Attributes | |
QMap< QString, QgsRendererV2AbstractMetadata * > | mRenderers |
QStringList | mRenderersOrder |
list to keep order in which renderers have been added |
Registry of renderers.
This is a singleton, renderers can be added / removed at any time
|
protected |
protected constructor
|
protected |
bool QgsRendererV2Registry::addRenderer | ( | QgsRendererV2AbstractMetadata * | metadata | ) |
add a renderer to registry. Takes ownership of the metadata object.
|
static |
bool QgsRendererV2Registry::removeRenderer | ( | QString | rendererName | ) |
remove renderer from registry
QgsRendererV2AbstractMetadata * QgsRendererV2Registry::rendererMetadata | ( | QString | rendererName | ) |
get metadata for particular renderer. Returns NULL if not found in registry.
QStringList QgsRendererV2Registry::renderersList | ( | ) |
return a list of available renderers
|
protected |
|
protected |
list to keep order in which renderers have been added