QGIS API Documentation 4.1.0-Master (60fea48833c)
Loading...
Searching...
No Matches
qgsselectioncontext.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsselectioncontext.h
3 --------------------------
4 begin : June 2022
5 copyright : (C) 2022 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSSELECTIONCONTEXT_H
17#define QGSSELECTIONCONTEXT_H
18
19#include "qgis_core.h"
20
29class CORE_EXPORT QgsSelectionContext
30{
31 public:
39 double scale() const;
40
48 void setScale( double scale );
49
50 private:
51 double mScale = 0;
52};
53
54#endif //QGSELECTIONCONTEXT_H
Encapsulates the context of a layer selection operation.
void setScale(double scale)
Sets the map scale at which the selection should occur.
double scale() const
Returns the map scale at which the selection should occur.