QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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#include "qgis_gui.h"
22#include <QObject>
23
24class QgsRasterLayer;
25class QComboBox;
26class QDoubleSpinBox;
27class QCheckBox;
28
30#define SIP_NO_FILE
31
37class GUI_EXPORT QgsResamplingUtils : public QObject
38{
39 Q_OBJECT
40
41 QgsRasterLayer *mRasterLayer = nullptr;
42 QComboBox *mZoomedInResamplingComboBox = nullptr;
43 QComboBox *mZoomedOutResamplingComboBox = nullptr;
44 QDoubleSpinBox *mMaximumOversamplingSpinBox = nullptr;
45 QCheckBox *mCbEarlyResampling = nullptr;
46
47 QgsResamplingUtils( const QgsResamplingUtils & ) = delete;
48 QgsResamplingUtils &operator=( const QgsResamplingUtils & ) = delete;
49
50 public:
52 QgsResamplingUtils();
53
55 void initWidgets( QgsRasterLayer *rasterLayer,
56 QComboBox *zoomedInResamplingComboBox,
57 QComboBox *zoomedOutResamplingComboBox,
58 QDoubleSpinBox *maximumOversamplingSpinBox,
59 QCheckBox *cbEarlyResampling );
60
62 void refreshWidgetsFromLayer();
63
65 void refreshLayerFromWidgets();
66
67 private:
68
69 void addExtraEarlyResamplingMethodsToCombos();
70 void removeExtraEarlyResamplingMethodsFromCombos();
71
72};
73
75
76#endif // QGSRESAMPLINGUTILS_H
Represents a raster layer.