QGIS API Documentation  2.12.0-Lyon
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 
30  bool symbolVisible( QgsSymbolV2* symbol, QgsVectorLayer* layer ) const;
31 
32  protected:
33 
36 
43  void runHitTestLayer( QgsVectorLayer* vl, SymbolV2Set& usedSymbols, QgsRenderContext& context );
44 
46  HitTest mHitTest;
47 
48 };
49 
50 #endif // QGSMAPHITTEST_H
HitTest mHitTest
Definition: qgsmaphittest.h:46
QMap< QgsVectorLayer *, SymbolV2Set > HitTest
Definition: qgsmaphittest.h:35
The QgsMapSettings class contains configuration for rendering of the map.
QSet< QString > SymbolV2Set
Definition: qgsmaphittest.h:34
Class that runs a hit test with given map settings.
Definition: qgsmaphittest.h:18
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:45