QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
src
core
raster
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
QgsRasterBlockFeedback
;
25
class
QgsRasterLayer
;
26
class
QgsRasterPipe
;
27
struct
QgsRasterViewPort
;
28
class
QgsRenderContext
;
29
30
class
QgsRasterLayerRenderer
;
31
32
#include "
qgsrasterinterface.h
"
33
34
41
class
QgsRasterLayerRenderer
:
public
QgsMapLayerRenderer
42
{
43
public
:
44
QgsRasterLayerRenderer
(
QgsRasterLayer
* layer,
QgsRenderContext
& rendererContext );
45
~QgsRasterLayerRenderer
();
46
47
virtual
bool
render
()
override
;
48
49
virtual
QgsFeedback
*
feedback
()
const override
;
50
51
protected
:
52
53
QPainter
*
mPainter
;
54
const
QgsMapToPixel
*
mMapToPixel
;
55
QgsRasterViewPort
*
mRasterViewPort
;
56
57
QgsRasterPipe
*
mPipe
;
58
QgsRenderContext
&
mContext
;
59
65
class
Feedback
:
public
QgsRasterBlockFeedback
66
{
67
public
:
69
explicit
Feedback
(
QgsRasterLayerRenderer
* r );
70
72
virtual
void
onNewData
()
override
;
73
private
:
74
QgsRasterLayerRenderer
* mR;
75
int
mMinimalPreviewInterval;
76
QTime
mLastPreview;
77
};
78
80
Feedback
*
mFeedback
;
81
};
82
83
84
#endif // QGSRASTERLAYERRENDERER_H
QgsRasterLayerRenderer::feedback
virtual QgsFeedback * feedback() const override
Access to feedback object of the layer renderer (may be null)
Definition:
qgsrasterlayerrenderer.cpp:237
QgsRasterPipe
Base class for processing modules.
Definition:
qgsrasterpipe.h:42
QgsRasterLayerRenderer::Feedback
Specific internal feedback class to provide preview of raster layer rendering.
Definition:
qgsrasterlayerrenderer.h:65
QgsRasterLayerRenderer::Feedback::Feedback
Feedback(QgsRasterLayerRenderer *r)
Create feedback object based on our layer renderer.
Definition:
qgsrasterlayerrenderer.cpp:242
QgsRasterLayer
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
Definition:
qgsrasterlayer.h:145
QgsRasterLayerRenderer::~QgsRasterLayerRenderer
~QgsRasterLayerRenderer()
Definition:
qgsrasterlayerrenderer.cpp:194
QgsRasterLayerRenderer::mMapToPixel
const QgsMapToPixel * mMapToPixel
Definition:
qgsrasterlayerrenderer.h:54
QgsRasterLayerRenderer::mPipe
QgsRasterPipe * mPipe
Definition:
qgsrasterlayerrenderer.h:57
QgsRasterLayerRenderer
Implementation of threaded rendering for raster layers.
Definition:
qgsrasterlayerrenderer.h:41
QTime
QgsRasterLayerRenderer::render
virtual bool render() override
Do the rendering (based on data stored in the class)
Definition:
qgsrasterlayerrenderer.cpp:202
QgsRasterLayerRenderer::mContext
QgsRenderContext & mContext
Definition:
qgsrasterlayerrenderer.h:58
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Definition:
qgsfeedback.h:40
QgsMapToPixel
Perform transforms between map coordinates and device coordinates.
Definition:
qgsmaptopixel.h:34
QgsRasterLayerRenderer::QgsRasterLayerRenderer
QgsRasterLayerRenderer(QgsRasterLayer *layer, QgsRenderContext &rendererContext)
Definition:
qgsrasterlayerrenderer.cpp:24
qgsrasterinterface.h
QPainter
QgsRasterLayerRenderer::mFeedback
Feedback * mFeedback
feedback class for cancellation and preview generation
Definition:
qgsrasterlayerrenderer.h:80
qgsmaplayerrenderer.h
QgsRasterLayerRenderer::mRasterViewPort
QgsRasterViewPort * mRasterViewPort
Definition:
qgsrasterlayerrenderer.h:55
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:45
QgsRasterLayerRenderer::Feedback::onNewData
virtual void onNewData() override
when notified of new data in data provider it launches a preview draw of the raster ...
Definition:
qgsrasterlayerrenderer.cpp:249
QgsMapLayerRenderer
Base class for utility classes that encapsulate information necessary for rendering of map layers...
Definition:
qgsmaplayerrenderer.h:45
QgsRasterViewPort
This class provides details of the viewable area that a raster will be rendered into.
Definition:
qgsrasterviewport.h:31
QgsRasterLayerRenderer::mPainter
QPainter * mPainter
Definition:
qgsrasterlayerrenderer.h:53
QgsRasterBlockFeedback
Feedback object tailored for raster block reading.
Definition:
qgsrasterinterface.h:38
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13