QGIS API Documentation  2.13.0-Master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsRendererV2Registry Class Reference

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. More...
 
bool removeRenderer (const QString &rendererName)
 remove renderer from registry More...
 
QgsRendererV2AbstractMetadatarendererMetadata (const QString &rendererName)
 get metadata for particular renderer. Returns NULL if not found in registry. More...
 
QStringList renderersList ()
 return a list of available renderers More...
 

Static Public Member Functions

static QgsRendererV2Registryinstance ()
 

Protected Member Functions

 QgsRendererV2Registry ()
 protected constructor More...
 
 ~QgsRendererV2Registry ()
 

Protected Attributes

QMap< QString, QgsRendererV2AbstractMetadata * > mRenderers
 
QStringList mRenderersOrder
 list to keep order in which renderers have been added More...
 

Detailed Description

Registry of renderers.

This is a singleton, renderers can be added / removed at any time

Definition at line 144 of file qgsrendererv2registry.h.

Constructor & Destructor Documentation

QgsRendererV2Registry::QgsRendererV2Registry ( )
protected

protected constructor

Definition at line 27 of file qgsrendererv2registry.cpp.

QgsRendererV2Registry::~QgsRendererV2Registry ( )
protected

Definition at line 66 of file qgsrendererv2registry.cpp.

Member Function Documentation

bool QgsRendererV2Registry::addRenderer ( QgsRendererV2AbstractMetadata metadata)

add a renderer to registry. Takes ownership of the metadata object.

Definition at line 82 of file qgsrendererv2registry.cpp.

QgsRendererV2Registry * QgsRendererV2Registry::instance ( )
static

Definition at line 75 of file qgsrendererv2registry.cpp.

bool QgsRendererV2Registry::removeRenderer ( const QString rendererName)

remove renderer from registry

Definition at line 92 of file qgsrendererv2registry.cpp.

QgsRendererV2AbstractMetadata * QgsRendererV2Registry::rendererMetadata ( const QString rendererName)

get metadata for particular renderer. Returns NULL if not found in registry.

Definition at line 103 of file qgsrendererv2registry.cpp.

QStringList QgsRendererV2Registry::renderersList ( )

return a list of available renderers

Definition at line 110 of file qgsrendererv2registry.cpp.

Member Data Documentation

QMap<QString, QgsRendererV2AbstractMetadata*> QgsRendererV2Registry::mRenderers
protected

Definition at line 167 of file qgsrendererv2registry.h.

QStringList QgsRendererV2Registry::mRenderersOrder
protected

list to keep order in which renderers have been added

Definition at line 170 of file qgsrendererv2registry.h.


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