QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsrasterlayerrenderer.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrasterlayerrenderer.h
3  --------------------------------------
4  Date : December 2013
5  Copyright : (C) 2013 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSRASTERLAYERRENDERER_H
17 #define QGSRASTERLAYERRENDERER_H
18 
19 #include "qgsmaplayerrenderer.h"
20 
21 class QPainter;
22 
23 class QgsMapToPixel;
24 class QgsRasterLayer;
25 class QgsRasterPipe;
26 struct QgsRasterViewPort;
27 class QgsRenderContext;
28 
35 {
36  public:
37  QgsRasterLayerRenderer( QgsRasterLayer* layer, QgsRenderContext& rendererContext );
39 
40  virtual bool render();
41 
42  protected:
43 
44  QPainter* mPainter;
47 
49 };
50 
51 #endif // QGSRASTERLAYERRENDERER_H
Base class for processing modules.
Definition: qgsrasterpipe.h:41
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
Definition: qgsrasterlayer.h:169
~QgsRasterLayerRenderer()
Definition: qgsrasterlayerrenderer.cpp:165
const QgsMapToPixel * mMapToPixel
Definition: qgsrasterlayerrenderer.h:45
QgsRasterPipe * mPipe
Definition: qgsrasterlayerrenderer.h:48
Implementation of threaded rendering for raster layers.
Definition: qgsrasterlayerrenderer.h:34
Perform transforms between map coordinates and device coordinates.
Definition: qgsmaptopixel.h:33
QgsRasterLayerRenderer(QgsRasterLayer *layer, QgsRenderContext &rendererContext)
Definition: qgsrasterlayerrenderer.cpp:24
QgsRasterViewPort * mRasterViewPort
Definition: qgsrasterlayerrenderer.h:46
Contains information about the context of a rendering operation.
Definition: qgsrendercontext.h:39
Base class for utility classes that encapsulate information necessary for rendering of map layers...
Definition: qgsmaplayerrenderer.h:43
virtual bool render()
Do the rendering (based on data stored in the class)
Definition: qgsrasterlayerrenderer.cpp:171
This class provides details of the viewable area that a raster will be rendered into.
Definition: qgsrasterviewport.h:31
QPainter * mPainter
Definition: qgsrasterlayerrenderer.h:44