QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | Friends | List of all members
QgsRasterLayerRenderer Class Reference

Implementation of threaded rendering for raster layers. More...

#include <qgsrasterlayerrenderer.h>

Inheritance diagram for QgsRasterLayerRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsRasterLayerRenderer (QgsRasterLayer *layer, QgsRenderContext &rendererContext)
 
 ~QgsRasterLayerRenderer () override
 
QgsFeedbackfeedback () const override
 Access to feedback object of the layer renderer (may be nullptr) More...
 
bool render () override
 Do the rendering (based on data stored in the class) More...
 
- Public Member Functions inherited from QgsMapLayerRenderer
 QgsMapLayerRenderer (const QString &layerID, QgsRenderContext *context=nullptr)
 Constructor for QgsMapLayerRenderer, with the associated layerID and render context. More...
 
virtual ~QgsMapLayerRenderer ()=default
 
QStringList errors () const
 Returns list of errors (problems) that happened during the rendering. More...
 
QString layerId () const
 Gets access to the ID of the layer rendered by this class. More...
 
QgsRenderContextrenderContext ()
 Returns the render context associated with the renderer. More...
 

Friends

class QgsRasterLayerRendererFeedback
 

Additional Inherited Members

- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

Implementation of threaded rendering for raster layers.

Note
not available in Python bindings
Since
QGIS 2.4

Definition at line 70 of file qgsrasterlayerrenderer.h.

Constructor & Destructor Documentation

◆ QgsRasterLayerRenderer()

QgsRasterLayerRenderer::QgsRasterLayerRenderer ( QgsRasterLayer layer,
QgsRenderContext rendererContext 
)

Definition at line 66 of file qgsrasterlayerrenderer.cpp.

◆ ~QgsRasterLayerRenderer()

QgsRasterLayerRenderer::~QgsRasterLayerRenderer ( )
override

Definition at line 263 of file qgsrasterlayerrenderer.cpp.

Member Function Documentation

◆ feedback()

QgsFeedback * QgsRasterLayerRenderer::feedback ( ) const
overridevirtual

Access to feedback object of the layer renderer (may be nullptr)

Since
QGIS 3.0

Reimplemented from QgsMapLayerRenderer.

Definition at line 337 of file qgsrasterlayerrenderer.cpp.

◆ render()

bool QgsRasterLayerRenderer::render ( )
overridevirtual

Do the rendering (based on data stored in the class)

Implements QgsMapLayerRenderer.

Definition at line 271 of file qgsrasterlayerrenderer.cpp.

Friends And Related Function Documentation

◆ QgsRasterLayerRendererFeedback

friend class QgsRasterLayerRendererFeedback
friend

Definition at line 92 of file qgsrasterlayerrenderer.h.


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