QGIS API Documentation
3.28.0-Firenze (ed3ad0430f)
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
#define SIP_NO_FILE
20
21
#include "
qgsmaplayerrenderer.h
"
22
#include "
qgsrasterdataprovider.h
"
23
#include "
qgsmapclippingregion.h
"
24
25
class
QPainter;
26
27
class
QgsMapToPixel
;
28
class
QgsRasterLayer
;
29
class
QgsRasterPipe
;
30
struct
QgsRasterViewPort
;
31
class
QgsRenderContext
;
32
33
class
QgsRasterLayerRenderer
;
34
35
#include "
qgsrasterinterface.h
"
36
38
45
class
CORE_EXPORT QgsRasterLayerRendererFeedback :
public
QgsRasterBlockFeedback
46
{
47
Q_OBJECT
48
49
public
:
51
explicit
QgsRasterLayerRendererFeedback(
QgsRasterLayerRenderer
*r );
52
54
void
onNewData
()
override
;
55
private
:
56
QgsRasterLayerRenderer
*mR =
nullptr
;
57
int
mMinimalPreviewInterval;
58
QTime mLastPreview;
59
};
60
62
70
class
CORE_EXPORT
QgsRasterLayerRenderer
:
public
QgsMapLayerRenderer
71
{
72
public
:
73
QgsRasterLayerRenderer
(
QgsRasterLayer
*layer,
QgsRenderContext
&rendererContext );
74
~QgsRasterLayerRenderer
()
override
;
75
76
bool
render()
override
;
77
QgsFeedback
*feedback()
const override
;
78
bool
forceRasterRender()
const override
;
79
80
private
:
81
82
QgsRasterViewPort
*mRasterViewPort =
nullptr
;
83
84
double
mLayerOpacity = 1.0;
85
QgsRasterPipe
*mPipe =
nullptr
;
86
87
QgsRasterDataProvider::Capability
mProviderCapabilities;
88
90
QgsRasterLayerRendererFeedback *mFeedback =
nullptr
;
91
92
QList< QgsMapClippingRegion > mClippingRegions;
93
94
friend
class
QgsRasterLayerRendererFeedback;
95
};
96
97
98
#endif
// QGSRASTERLAYERRENDERER_H
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition:
qgsfeedback.h:45
QgsMapLayerRenderer
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Definition:
qgsmaplayerrenderer.h:55
QgsMapToPixel
Perform transforms between map coordinates and device coordinates.
Definition:
qgsmaptopixel.h:39
QgsRasterBlockFeedback
Feedback object tailored for raster block reading.
Definition:
qgsrasterinterface.h:42
QgsRasterBlockFeedback::onNewData
virtual void onNewData()
May be emitted by raster data provider to indicate that some partial data are available and a new pre...
Definition:
qgsrasterinterface.h:53
QgsRasterInterface::Capability
Capability
If you add to this, please also add to capabilitiesString()
Definition:
qgsrasterinterface.h:203
QgsRasterLayerRenderer
Implementation of threaded rendering for raster layers.
Definition:
qgsrasterlayerrenderer.h:71
QgsRasterLayer
Represents a raster layer.
Definition:
qgsrasterlayer.h:77
QgsRasterPipe
Contains a pipeline of raster interfaces for sequential raster processing.
Definition:
qgsrasterpipe.h:50
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:60
qgsmapclippingregion.h
qgsmaplayerrenderer.h
qgsrasterdataprovider.h
qgsrasterinterface.h
QgsRasterViewPort
This class provides details of the viewable area that a raster will be rendered into.
Definition:
qgsrasterviewport.h:35
Generated on Sat Oct 22 2022 16:10:47 for QGIS API Documentation by
1.9.4