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
qgsmaphittest.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaphittest.h
3
---------------------
4
begin : September 2014
5
copyright : (C) 2014 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
#ifndef QGSMAPHITTEST_H
16
#define QGSMAPHITTEST_H
17
18
#include "qgis_core.h"
19
#include "
qgis_sip.h
"
20
#include "
qgsmapsettings.h
"
21
#include "
qgsgeometry.h
"
22
23
#include <QSet>
24
25
class
QgsRenderContext
;
26
class
QgsSymbol
;
27
class
QgsVectorLayer
;
28
class
QgsExpression
;
29
37
class
CORE_EXPORT
QgsMapHitTest
38
{
39
public
:
41
typedef
QMap<QString, QString>
LayerFilterExpression
;
42
48
QgsMapHitTest
(
const
QgsMapSettings
&settings,
const
QgsGeometry
&polygon =
QgsGeometry
(),
const
QgsMapHitTest::LayerFilterExpression
&layerFilterExpression =
QgsMapHitTest::LayerFilterExpression
() );
49
51
QgsMapHitTest
(
const
QgsMapSettings
&settings,
const
QgsMapHitTest::LayerFilterExpression
&layerFilterExpression );
52
54
void
run();
55
63
bool
symbolVisible(
QgsSymbol
*symbol,
QgsVectorLayer
*layer )
const
;
64
72
bool
legendKeyVisible(
const
QString &ruleKey,
QgsVectorLayer
*layer )
const
;
73
74
private
:
75
77
typedef
QSet<QString> SymbolSet;
78
80
typedef
QMap<QgsVectorLayer *, SymbolSet> HitTest;
81
91
void
runHitTestLayer(
QgsVectorLayer
*vl, SymbolSet &usedSymbols, SymbolSet &usedSymbolsRuleKey,
QgsRenderContext
&context );
92
94
QgsMapSettings
mSettings;
95
97
HitTest mHitTest;
98
100
HitTest mHitTestRuleKey;
101
103
QgsMapHitTest::LayerFilterExpression
mLayerFilterExpression;
104
106
QgsGeometry
mPolygon;
107
109
bool
mOnlyExpressions;
110
};
111
112
#endif // QGSMAPHITTEST_H
QgsExpression
Class for parsing and evaluation of expressions (formerly called "search strings").
Definition:
qgsexpression.h:113
QgsSymbol
Abstract base class for all rendered symbols.
Definition:
qgssymbol.h:61
QgsGeometry
A geometry is the spatial representation of a feature.
Definition:
qgsgeometry.h:122
qgsmapsettings.h
QgsMapSettings
The QgsMapSettings class contains configuration for rendering of the map.
Definition:
qgsmapsettings.h:85
qgis_sip.h
QgsMapHitTest
Class that runs a hit test with given map settings.
Definition:
qgsmaphittest.h:37
qgsgeometry.h
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:51
QgsMapHitTest::LayerFilterExpression
QMap< QString, QString > LayerFilterExpression
Maps an expression string to a layer id.
Definition:
qgsmaphittest.h:41
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:366
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13