QGIS API Documentation  2.99.0-Master (13a3f2f)
Classes | Public Member Functions | Protected Attributes | 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]

Classes

class  Feedback
 Specific internal feedback class to provide preview of raster layer rendering. More...
 

Public Member Functions

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

Protected Attributes

QgsRenderContextmContext
 
FeedbackmFeedback = nullptr
 feedback class for cancelation and preview generation More...
 
const QgsMapToPixelmMapToPixel = nullptr
 
QPainter * mPainter = nullptr
 
QgsRasterPipemPipe = nullptr
 
QgsRasterViewPortmRasterViewPort = nullptr
 
- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

Implementation of threaded rendering for raster layers.

Since
QGIS 2.4
Note
not available in Python bindings

Definition at line 41 of file qgsrasterlayerrenderer.h.

Constructor & Destructor Documentation

◆ QgsRasterLayerRenderer()

QgsRasterLayerRenderer::QgsRasterLayerRenderer ( QgsRasterLayer layer,
QgsRenderContext rendererContext 
)

Definition at line 27 of file qgsrasterlayerrenderer.cpp.

◆ ~QgsRasterLayerRenderer()

QgsRasterLayerRenderer::~QgsRasterLayerRenderer ( )

Definition at line 185 of file qgsrasterlayerrenderer.cpp.

Member Function Documentation

◆ feedback()

QgsFeedback * QgsRasterLayerRenderer::feedback ( ) const
overridevirtual

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

Since
QGIS 3.0

Reimplemented from QgsMapLayerRenderer.

Definition at line 228 of file qgsrasterlayerrenderer.cpp.

◆ render()

bool QgsRasterLayerRenderer::render ( )
overridevirtual

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

Implements QgsMapLayerRenderer.

Definition at line 193 of file qgsrasterlayerrenderer.cpp.

Member Data Documentation

◆ mContext

QgsRenderContext& QgsRasterLayerRenderer::mContext
protected

Definition at line 58 of file qgsrasterlayerrenderer.h.

◆ mFeedback

Feedback* QgsRasterLayerRenderer::mFeedback = nullptr
protected

feedback class for cancelation and preview generation

Definition at line 80 of file qgsrasterlayerrenderer.h.

◆ mMapToPixel

const QgsMapToPixel* QgsRasterLayerRenderer::mMapToPixel = nullptr
protected

Definition at line 54 of file qgsrasterlayerrenderer.h.

◆ mPainter

QPainter* QgsRasterLayerRenderer::mPainter = nullptr
protected

Definition at line 53 of file qgsrasterlayerrenderer.h.

◆ mPipe

QgsRasterPipe* QgsRasterLayerRenderer::mPipe = nullptr
protected

Definition at line 57 of file qgsrasterlayerrenderer.h.

◆ mRasterViewPort

QgsRasterViewPort* QgsRasterLayerRenderer::mRasterViewPort = nullptr
protected

Definition at line 55 of file qgsrasterlayerrenderer.h.


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