QGIS API Documentation
2.10.1-Pisa
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
qgsmaphittest.h
Go to the documentation of this file.
1
#ifndef QGSMAPHITTEST_H
2
#define QGSMAPHITTEST_H
3
4
#include "
qgsmapsettings.h
"
5
6
#include <QSet>
7
8
class
QgsRenderContext
;
9
class
QgsSymbolV2
;
10
class
QgsVectorLayer
;
11
18
class
CORE_EXPORT
QgsMapHitTest
19
{
20
public
:
21
QgsMapHitTest
(
const
QgsMapSettings
& settings );
22
23
void
run();
24
25
QSet<QgsSymbolV2*>
symbolsForLayer
(
QgsVectorLayer
* layer )
const
{
return
mHitTest[layer]; }
26
27
protected
:
28
29
typedef
QSet<QgsSymbolV2*>
SymbolV2Set
;
30
typedef
QMap<QgsVectorLayer*, SymbolV2Set>
HitTest
;
31
32
void
runHitTestLayer(
QgsVectorLayer
* vl,
SymbolV2Set
& usedSymbols,
QgsRenderContext
& context );
33
34
QgsMapSettings
mSettings
;
35
HitTest
mHitTest
;
36
37
};
38
39
#endif // QGSMAPHITTEST_H
QgsMapHitTest::mHitTest
HitTest mHitTest
Definition:
qgsmaphittest.h:35
QgsMapHitTest::HitTest
QMap< QgsVectorLayer *, SymbolV2Set > HitTest
Definition:
qgsmaphittest.h:30
QMap< QgsVectorLayer *, SymbolV2Set >
QgsMapHitTest::SymbolV2Set
QSet< QgsSymbolV2 * > SymbolV2Set
Definition:
qgsmaphittest.h:29
qgsmapsettings.h
QgsMapSettings
The QgsMapSettings class contains configuration for rendering of the map.
Definition:
qgsmapsettings.h:52
QSet
QgsMapHitTest
Class that runs a hit test with given map settings.
Definition:
qgsmaphittest.h:18
QgsSymbolV2
Definition:
qgssymbolv2.h:48
QgsMapHitTest::symbolsForLayer
QSet< QgsSymbolV2 * > symbolsForLayer(QgsVectorLayer *layer) const
Definition:
qgsmaphittest.h:25
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:39
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:620
QgsMapHitTest::mSettings
QgsMapSettings mSettings
Definition:
qgsmaphittest.h:34
Generated on Sat Aug 22 2015 02:53:39 for QGIS API Documentation by
1.8.6