/usr/include/qgis/qgsmaphittest.h is in libqgis-dev 2.8.6+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #ifndef QGSMAPHITTEST_H
#define QGSMAPHITTEST_H
#include "qgsmapsettings.h"
#include <QSet>
class QgsRenderContext;
class QgsSymbolV2;
class QgsVectorLayer;
/**
* Class that runs a hit test with given map settings. Based on the hit test it returns which symbols
* will be visible on the map - this is useful for content based legend.
*
* @note added in 2.6
*/
class CORE_EXPORT QgsMapHitTest
{
public:
QgsMapHitTest( const QgsMapSettings& settings );
void run();
QSet<QgsSymbolV2*> symbolsForLayer( QgsVectorLayer* layer ) const { return mHitTest[layer]; }
protected:
typedef QSet<QgsSymbolV2*> SymbolV2Set;
typedef QMap<QgsVectorLayer*, SymbolV2Set> HitTest;
void runHitTestLayer( QgsVectorLayer* vl, SymbolV2Set& usedSymbols, QgsRenderContext& context );
QgsMapSettings mSettings;
HitTest mHitTest;
};
#endif // QGSMAPHITTEST_H
|