QGIS API Documentation  2.10.1-Pisa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
31 
32  void runHitTestLayer( QgsVectorLayer* vl, SymbolV2Set& usedSymbols, QgsRenderContext& context );
33 
36 
37 };
38 
39 #endif // QGSMAPHITTEST_H
HitTest mHitTest
Definition: qgsmaphittest.h:35
QMap< QgsVectorLayer *, SymbolV2Set > HitTest
Definition: qgsmaphittest.h:30
QSet< QgsSymbolV2 * > SymbolV2Set
Definition: qgsmaphittest.h:29
The QgsMapSettings class contains configuration for rendering of the map.
Class that runs a hit test with given map settings.
Definition: qgsmaphittest.h:18
QSet< QgsSymbolV2 * > symbolsForLayer(QgsVectorLayer *layer) const
Definition: qgsmaphittest.h:25
Contains information about the context of a rendering operation.
Represents a vector layer which manages a vector based data sets.
QgsMapSettings mSettings
Definition: qgsmaphittest.h:34