QGIS API Documentation  2.99.0-Master (0a63d1f)
Public Member Functions | List of all members
QgsRasterRendererRegistry Class Reference

Registry for raster renderers. More...

#include <qgsrasterrendererregistry.h>

Public Member Functions

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

Detailed Description

Registry for raster renderers.

QgsRasterRendererRegistry is not usually directly created, but rather accessed through QgsApplication::rasterRendererRegistry().

Note
not available in Python bindings

Definition at line 58 of file qgsrasterrendererregistry.h.

Constructor & Destructor Documentation

◆ QgsRasterRendererRegistry()

QgsRasterRendererRegistry::QgsRasterRendererRegistry ( )

Definition at line 52 of file qgsrasterrendererregistry.cpp.

Member Function Documentation

◆ defaultRendererForDrawingStyle()

QgsRasterRenderer * QgsRasterRendererRegistry::defaultRendererForDrawingStyle ( QgsRaster::DrawingStyle  theDrawingStyle,
QgsRasterDataProvider provider 
) const

Creates a default renderer for a raster drawing style (considering user options such as default contrast enhancement).

Caller takes ownership

Definition at line 111 of file qgsrasterrendererregistry.cpp.

◆ entries()

QList< QgsRasterRendererRegistryEntry > QgsRasterRendererRegistry::entries ( ) const

Definition at line 99 of file qgsrasterrendererregistry.cpp.

◆ insert()

void QgsRasterRendererRegistry::insert ( const QgsRasterRendererRegistryEntry entry)

Definition at line 68 of file qgsrasterrendererregistry.cpp.

◆ insertWidgetFunction()

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

Definition at line 74 of file qgsrasterrendererregistry.cpp.

◆ rendererData()

bool QgsRasterRendererRegistry::rendererData ( const QString &  rendererName,
QgsRasterRendererRegistryEntry data 
) const

Definition at line 83 of file qgsrasterrendererregistry.cpp.

◆ renderersList()

QStringList QgsRasterRendererRegistry::renderersList ( ) const

Definition at line 94 of file qgsrasterrendererregistry.cpp.


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