QGIS API Documentation  2.17.0-Master (8784312)
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]

Public Member Functions

 QgsRasterLayerRenderer (QgsRasterLayer *layer, QgsRenderContext &rendererContext)
 
 ~QgsRasterLayerRenderer ()
 
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 ()
 
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
 
const QgsMapToPixelmMapToPixel
 
QPaintermPainter
 
QgsRasterPipemPipe
 
QgsRasterViewPortmRasterViewPort
 
- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

Implementation of threaded rendering for raster layers.

Note
added in 2.4
not available in Python bindings

Definition at line 35 of file qgsrasterlayerrenderer.h.

Constructor & Destructor Documentation

QgsRasterLayerRenderer::QgsRasterLayerRenderer ( QgsRasterLayer layer,
QgsRenderContext rendererContext 
)

Definition at line 24 of file qgsrasterlayerrenderer.cpp.

QgsRasterLayerRenderer::~QgsRasterLayerRenderer ( )

Definition at line 179 of file qgsrasterlayerrenderer.cpp.

Member Function Documentation

bool QgsRasterLayerRenderer::render ( )
overridevirtual

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

Implements QgsMapLayerRenderer.

Definition at line 185 of file qgsrasterlayerrenderer.cpp.

Member Data Documentation

QgsRenderContext& QgsRasterLayerRenderer::mContext
protected

Definition at line 50 of file qgsrasterlayerrenderer.h.

const QgsMapToPixel* QgsRasterLayerRenderer::mMapToPixel
protected

Definition at line 46 of file qgsrasterlayerrenderer.h.

QPainter* QgsRasterLayerRenderer::mPainter
protected

Definition at line 45 of file qgsrasterlayerrenderer.h.

QgsRasterPipe* QgsRasterLayerRenderer::mPipe
protected

Definition at line 49 of file qgsrasterlayerrenderer.h.

QgsRasterViewPort* QgsRasterLayerRenderer::mRasterViewPort
protected

Definition at line 47 of file qgsrasterlayerrenderer.h.


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