QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
u
v
w
z
+
Variables
a
b
c
d
e
g
h
i
l
n
o
p
q
r
s
t
u
w
+
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
+
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgsmaplayerrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayerrenderer.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 QGSMAPLAYERRENDERER_H
17
#define QGSMAPLAYERRENDERER_H
18
19
#include <QStringList>
20
21
#include "qgis_core.h"
22
23
class
QgsFeedback
;
24
class
QgsRenderContext
;
25
49
class
CORE_EXPORT
QgsMapLayerRenderer
50
{
51
public
:
52
56
QgsMapLayerRenderer
(
const
QString &layerID,
QgsRenderContext
*context =
nullptr
)
57
: mLayerID( layerID )
58
, mContext( context )
59
{}
60
61
virtual
~
QgsMapLayerRenderer
() =
default
;
62
64
virtual
bool
render() = 0;
65
70
virtual
QgsFeedback
*
feedback
()
const
{
return
nullptr
; }
71
73
QStringList
errors
()
const
{
return
mErrors; }
74
76
QString
layerId
()
const
{
return
mLayerID; }
77
83
QgsRenderContext
*
renderContext
() {
return
mContext; }
84
85
protected
:
86
QStringList
mErrors
;
87
QString
mLayerID
;
88
89
private
:
90
91
// TODO QGIS 4.0 - make reference instead of pointer!
92
98
QgsRenderContext
*mContext =
nullptr
;
99
};
100
101
#endif // QGSMAPLAYERRENDERER_H
QgsMapLayerRenderer::QgsMapLayerRenderer
QgsMapLayerRenderer(const QString &layerID, QgsRenderContext *context=nullptr)
Constructor for QgsMapLayerRenderer, with the associated layerID and render context.
Definition:
qgsmaplayerrenderer.h:56
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Definition:
qgsfeedback.h:44
QgsMapLayerRenderer::mLayerID
QString mLayerID
Definition:
qgsmaplayerrenderer.h:87
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:51
QgsMapLayerRenderer::layerId
QString layerId() const
Gets access to the ID of the layer rendered by this class.
Definition:
qgsmaplayerrenderer.h:76
QgsMapLayerRenderer
Base class for utility classes that encapsulate information necessary for rendering of map layers...
Definition:
qgsmaplayerrenderer.h:49
QgsMapLayerRenderer::mErrors
QStringList mErrors
Definition:
qgsmaplayerrenderer.h:86
QgsMapLayerRenderer::errors
QStringList errors() const
Returns list of errors (problems) that happened during the rendering.
Definition:
qgsmaplayerrenderer.h:73
QgsMapLayerRenderer::renderContext
QgsRenderContext * renderContext()
Returns the render context associated with the renderer.
Definition:
qgsmaplayerrenderer.h:83
QgsMapLayerRenderer::feedback
virtual QgsFeedback * feedback() const
Access to feedback object of the layer renderer (may be nullptr)
Definition:
qgsmaplayerrenderer.h:70
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13