QGIS API Documentation
3.0.2-Girona (307d082)
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
z
+
Functions
a
b
c
d
f
g
i
l
n
o
p
r
s
t
u
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
+
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
h
i
l
m
n
o
p
r
s
t
u
v
x
y
z
+
Related Functions
a
c
d
e
f
g
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
d
g
h
i
l
n
p
u
+
Typedefs
a
b
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
u
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
symbology
qgspointclusterrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointclusterrenderer.h
3
-------------------------
4
begin : February 2016
5
copyright : (C) 2016 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSPOINTCLUSTERRENDERER_H
19
#define QGSPOINTCLUSTERRENDERER_H
20
21
#include "qgis_core.h"
22
#include "
qgis.h
"
23
#include "
qgspointdistancerenderer.h
"
24
31
class
CORE_EXPORT
QgsPointClusterRenderer
:
public
QgsPointDistanceRenderer
32
{
33
public
:
34
35
QgsPointClusterRenderer
();
36
37
QgsPointClusterRenderer
*
clone
()
const
override
SIP_FACTORY
;
38
void
startRender
(
QgsRenderContext
&context,
const
QgsFields
&fields )
override
;
39
void
stopRender
(
QgsRenderContext
&context )
override
;
40
QDomElement
save
( QDomDocument &doc,
const
QgsReadWriteContext
&context )
override
;
41
QSet<QString>
usedAttributes
(
const
QgsRenderContext
&context )
const override
;
42
44
static
QgsFeatureRenderer
*create( QDomElement &symbologyElem,
const
QgsReadWriteContext
&context )
SIP_FACTORY
;
45
50
QgsMarkerSymbol
*clusterSymbol();
51
57
void
setClusterSymbol(
QgsMarkerSymbol
*symbol
SIP_TRANSFER
);
58
63
static
QgsPointClusterRenderer
*convertFromRenderer(
const
QgsFeatureRenderer
*renderer )
SIP_FACTORY
;
64
65
private
:
66
#ifdef SIP_RUN
67
QgsPointClusterRenderer
(
const
QgsPointClusterRenderer
& );
68
QgsPointClusterRenderer
&operator=(
const
QgsPointClusterRenderer
& );
69
#endif
70
72
std::unique_ptr< QgsMarkerSymbol > mClusterSymbol;
73
74
void
drawGroup( QPointF centerPoint,
QgsRenderContext
&context,
const
QgsPointDistanceRenderer::ClusteredGroup
&group )
override
SIP_FORCE
;
75
76
};
77
78
#endif // QGSPOINTCLUSTERRENDERER_H
QgsPointDistanceRenderer
An abstract base class for distance based point renderers (e.g., clusterer and displacement renderers...
Definition:
qgspointdistancerenderer.h:38
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects...
Definition:
qgsreadwritecontext.h:29
qgspointdistancerenderer.h
QgsFeatureRenderer::save
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context)
store renderer info to XML element
Definition:
qgsrenderer.cpp:177
QgsFields
Container of fields for a vector layer.
Definition:
qgsfields.h:42
QgsPointDistanceRenderer::stopRender
void stopRender(QgsRenderContext &context) override
Must be called when a render cycle has finished, to allow the renderer to clean up.
Definition:
qgspointdistancerenderer.cpp:318
QgsMarkerSymbol
Definition:
qgssymbol.h:611
SIP_FORCE
#define SIP_FORCE
Definition:
qgis_sip.h:124
QgsPointClusterRenderer
A renderer that automatically clusters points with the same geographic position.
Definition:
qgspointclusterrenderer.h:31
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsPointDistanceRenderer::startRender
void startRender(QgsRenderContext &context, const QgsFields &fields) override
Must be called when a new render cycle is started.
Definition:
qgspointdistancerenderer.cpp:288
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:69
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:51
QgsPointDistanceRenderer::ClusteredGroup
QList< QgsPointDistanceRenderer::GroupedFeature > ClusteredGroup
A group of clustered points (ie features within the distance tolerance).
Definition:
qgspointdistancerenderer.h:77
QgsFeatureRenderer
Definition:
qgsrenderer.h:90
qgis.h
QgsFeatureRenderer::clone
virtual QgsFeatureRenderer * clone() const =0
Create a deep copy of this renderer.
QgsPointDistanceRenderer::usedAttributes
QSet< QString > usedAttributes(const QgsRenderContext &context) const override
Return a list of attributes required by this renderer.
Definition:
qgspointdistancerenderer.cpp:207
Generated on Sat Apr 21 2018 11:45:00 for QGIS API Documentation by
1.8.13