QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
i
l
m
n
o
p
s
t
+
Functions
a
b
c
d
f
g
i
l
m
n
o
p
t
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
_
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
_
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
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
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
+
Related Functions
a
c
d
e
f
g
l
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
t
u
v
w
z
+
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
Enumerator
+
Macros
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgslabelsearchtree.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslabelsearchtree.h
3
Node for raster calculator tree
4
--------------------
5
begin : 2010-11-02
6
copyright : (C) 2010 by Marco Hugentobler
7
email : marco dot hugentobler at sourcepole dot ch
8
***************************************************************************/
9
10
/***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
#ifndef QGSLABELSEARCHTREE_H
20
#define QGSLABELSEARCHTREE_H
21
22
#include "
qgspoint.h
"
23
#include "
qgsmaprenderer.h
"
24
#include <QList>
25
#include <QVector>
26
#include <
pointset.h
>
27
#include <
labelposition.h
>
28
#include "
qgsrectangle.h
"
29
32
class
CORE_EXPORT
QgsLabelSearchTree
33
{
34
public
:
35
QgsLabelSearchTree
();
36
~
QgsLabelSearchTree
();
37
39
void
clear();
40
45
void
label(
const
QgsPoint
& p,
QList<QgsLabelPosition*>
& posList )
const
;
46
51
void
labelsInRect(
const
QgsRectangle
& r,
QList<QgsLabelPosition*>
& posList )
const
;
52
57
bool
insertLabel(
pal::LabelPosition
* labelPos,
int
featureId,
const
QString
& layerName,
const
QString
& labeltext,
const
QFont
& labelfont,
bool
diagram =
false
,
bool
pinned =
false
,
const
QString
& providerId =
QString
() );
58
59
private
:
60
// set as mutable because RTree template is not const-correct
61
mutable
pal::RTree<QgsLabelPosition*, double, 2, double> mSpatialIndex;
62
QList< QgsLabelPosition* >
mOwnedPositions;
63
64
QgsLabelSearchTree
(
const
QgsLabelSearchTree
& rh );
65
QgsLabelSearchTree
& operator=(
const
QgsLabelSearchTree
& rh );
66
};
67
68
#endif // QGSLABELTREE_H
QgsRectangle
A rectangle specified with double values.
Definition:
qgsrectangle.h:35
labelposition.h
pointset.h
QgsLabelSearchTree
A class to query the labeling structure at a given point (small wraper around pal RTree class) ...
Definition:
qgslabelsearchtree.h:32
QFont
qgsrectangle.h
QString
QList< QgsLabelPosition * >
QgsPoint
A class to represent a point.
Definition:
qgspoint.h:117
pal::LabelPosition
LabelPosition is a candidate feature label position.
Definition:
labelposition.h:51
qgsmaprenderer.h
qgspoint.h
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13