QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
QgsRasterRendererRegistry Class Reference

Registry for raster renderers. More...

#include <qgsrasterrendererregistry.h>

Collaboration diagram for QgsRasterRendererRegistry:
Collaboration graph
[legend]

Public Member Functions

 ~QgsRasterRendererRegistry ()
void insert (QgsRasterRendererRegistryEntry entry)
void insertWidgetFunction (const QString &rendererName, QgsRasterRendererWidgetCreateFunc func)
bool rendererData (const QString &rendererName, QgsRasterRendererRegistryEntry &data) const
QStringList renderersList () const
QList
< QgsRasterRendererRegistryEntry
entries () const
QgsRasterRendererdefaultRendererForDrawingStyle (const QgsRaster::DrawingStyle &theDrawingStyle, QgsRasterDataProvider *provider) const
 Creates a default renderer for a raster drawing style (considering user options such as default contrast enhancement).

Static Public Member Functions

static QgsRasterRendererRegistryinstance ()

Protected Member Functions

 QgsRasterRendererRegistry ()

Private Member Functions

bool minMaxValuesForBand (int band, QgsRasterDataProvider *provider, double &minValue, double &maxValue) const

Private Attributes

QHash< QString,
QgsRasterRendererRegistryEntry
mEntries
QStringList mSortedEntries

Static Private Attributes

static QgsRasterRendererRegistrymInstance

Detailed Description

Registry for raster renderers.

Definition at line 51 of file qgsrasterrendererregistry.h.

Constructor & Destructor Documentation

QgsRasterRendererRegistry::~QgsRasterRendererRegistry ( )

Definition at line 58 of file qgsrasterrendererregistry.cpp.

QgsRasterRendererRegistry::QgsRasterRendererRegistry ( )
protected

Member Function Documentation

QgsRasterRenderer * QgsRasterRendererRegistry::defaultRendererForDrawingStyle ( const QgsRaster::DrawingStyle theDrawingStyle,
QgsRasterDataProvider provider 
) const
QList< QgsRasterRendererRegistryEntry > QgsRasterRendererRegistry::entries ( ) const

Definition at line 93 of file qgsrasterrendererregistry.cpp.

References mEntries.

void QgsRasterRendererRegistry::insert ( QgsRasterRendererRegistryEntry  entry)
void QgsRasterRendererRegistry::insertWidgetFunction ( const QString &  rendererName,
QgsRasterRendererWidgetCreateFunc  func 
)

Definition at line 68 of file qgsrasterrendererregistry.cpp.

References mEntries.

QgsRasterRendererRegistry * QgsRasterRendererRegistry::instance ( )
static
bool QgsRasterRendererRegistry::minMaxValuesForBand ( int  band,
QgsRasterDataProvider provider,
double &  minValue,
double &  maxValue 
) const
private
bool QgsRasterRendererRegistry::rendererData ( const QString &  rendererName,
QgsRasterRendererRegistryEntry data 
) const

Definition at line 77 of file qgsrasterrendererregistry.cpp.

References mEntries.

QStringList QgsRasterRendererRegistry::renderersList ( ) const

Definition at line 88 of file qgsrasterrendererregistry.cpp.

References mSortedEntries.

Member Data Documentation

QHash< QString, QgsRasterRendererRegistryEntry > QgsRasterRendererRegistry::mEntries
private

Definition at line 72 of file qgsrasterrendererregistry.h.

Referenced by entries(), insert(), insertWidgetFunction(), and rendererData().

QgsRasterRendererRegistry* QgsRasterRendererRegistry::mInstance
staticprivate

Definition at line 71 of file qgsrasterrendererregistry.h.

Referenced by instance().

QStringList QgsRasterRendererRegistry::mSortedEntries
private

Definition at line 73 of file qgsrasterrendererregistry.h.

Referenced by insert(), and renderersList().


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