Class: QgsRasterRendererRegistry

class qgis.core.QgsRasterRendererRegistry

Bases: sip.wrapper

Registry for raster renderers.

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

Note

Exposed to Python bindings in QGIS 3.38

QgsRasterRendererRegistry() Constructor for QgsRasterRendererRegistry.

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

The registry is pre-populated with standard raster renderers.

QgsRasterRendererRegistry(QgsRasterRendererRegistry)

Methods

defaultRendererForDrawingStyle

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

rendererCapabilities

Returns the capabilities for the renderer with the specified name.

renderersList

Returns a list of the names of registered renderers.

defaultRendererForDrawingStyle(self, drawingStyle: Qgis.RasterDrawingStyle, provider: QgsRasterDataProvider) QgsRasterRenderer

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

Parameters:
Return type:

QgsRasterRenderer

rendererCapabilities(self, rendererName: str) Qgis.RasterRendererCapabilities

Returns the capabilities for the renderer with the specified name.

New in version 3.38.

Parameters:

rendererName (str) –

Return type:

Qgis.RasterRendererCapabilities

renderersList(self) List[str]

Returns a list of the names of registered renderers.

Return type:

List[str]