QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsresamplingutils.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsresamplingutils.h
3  --------------------
4  begin : 12/06/2020
5  copyright : (C) 2020 Even Rouault
6  email : even.rouault at spatialys.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSRESAMPLINGUTILS_H
19 #define QGSRESAMPLINGUTILS_H
20 
21 
22 class QgsRasterLayer;
23 class QComboBox;
24 class QDoubleSpinBox;
25 class QCheckBox;
26 
28 #define SIP_NO_FILE
29 
35 class QgsResamplingUtils
36 {
37  QgsRasterLayer *mRasterLayer = nullptr;
38  QComboBox *mZoomedInResamplingComboBox = nullptr;
39  QComboBox *mZoomedOutResamplingComboBox = nullptr;
40  QDoubleSpinBox *mMaximumOversamplingSpinBox = nullptr;
41  QCheckBox *mCbEarlyResampling = nullptr;
42 
43  QgsResamplingUtils( const QgsResamplingUtils & ) = delete;
44  QgsResamplingUtils &operator=( const QgsResamplingUtils & ) = delete;
45 
46  public:
48  QgsResamplingUtils();
49 
51  void initWidgets( QgsRasterLayer *rasterLayer,
52  QComboBox *zoomedInResamplingComboBox,
53  QComboBox *zoomedOutResamplingComboBox,
54  QDoubleSpinBox *maximumOversamplingSpinBox,
55  QCheckBox *cbEarlyResampling );
56 
58  void refreshWidgetsFromLayer();
59 
61  void refreshLayerFromWidgets();
62 };
63 
65 
66 #endif // QGSRESAMPLINGUTILS_H
QgsRasterLayer
Represents a raster layer.
Definition: qgsrasterlayer.h:71