QGIS API Documentation  2.0.1-Dufour
 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

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
< 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,
QStringList mSortedEntries

Static Private Attributes

static QgsRasterRendererRegistrymInstance = 0

Detailed Description

Registry for raster renderers.

Definition at line 51 of file qgsrasterrendererregistry.h.

Constructor & Destructor Documentation

QgsRasterRendererRegistry::~QgsRasterRendererRegistry ( )

Definition at line 63 of file qgsrasterrendererregistry.cpp.

QgsRasterRendererRegistry::QgsRasterRendererRegistry ( )

Member Function Documentation

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

Definition at line 98 of file qgsrasterrendererregistry.cpp.

References mEntries.

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

Definition at line 73 of file qgsrasterrendererregistry.cpp.

References mEntries.

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

Definition at line 82 of file qgsrasterrendererregistry.cpp.

References mEntries.

QStringList QgsRasterRendererRegistry::renderersList ( ) const

Definition at line 93 of file qgsrasterrendererregistry.cpp.

References mSortedEntries.

Member Data Documentation

QHash< QString, QgsRasterRendererRegistryEntry > QgsRasterRendererRegistry::mEntries

Definition at line 72 of file qgsrasterrendererregistry.h.

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

QgsRasterRendererRegistry * QgsRasterRendererRegistry::mInstance = 0

Definition at line 71 of file qgsrasterrendererregistry.h.

Referenced by instance().

QStringList QgsRasterRendererRegistry::mSortedEntries

Definition at line 73 of file qgsrasterrendererregistry.h.

Referenced by insert(), and renderersList().

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