QGIS API Documentation 3.99.0-Master (a5475b57e34)
Loading...
Searching...
No Matches
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
23#include <QObject>
24
25#define SIP_NO_FILE
26
27class QgsRasterLayer;
28class QComboBox;
29class QDoubleSpinBox;
30class QCheckBox;
31
33
39class GUI_EXPORT QgsResamplingUtils : public QObject
40{
41 Q_OBJECT
42
43 QgsRasterLayer *mRasterLayer = nullptr;
44 QComboBox *mZoomedInResamplingComboBox = nullptr;
45 QComboBox *mZoomedOutResamplingComboBox = nullptr;
46 QDoubleSpinBox *mMaximumOversamplingSpinBox = nullptr;
47 QCheckBox *mCbEarlyResampling = nullptr;
48
49 QgsResamplingUtils( const QgsResamplingUtils & ) = delete;
50 QgsResamplingUtils &operator=( const QgsResamplingUtils & ) = delete;
51
52 public:
54 QgsResamplingUtils();
55
57 void initWidgets( QgsRasterLayer *rasterLayer, QComboBox *zoomedInResamplingComboBox, QComboBox *zoomedOutResamplingComboBox, QDoubleSpinBox *maximumOversamplingSpinBox, QCheckBox *cbEarlyResampling );
58
60 void refreshWidgetsFromLayer();
61
63 void refreshLayerFromWidgets();
64
65 private:
66 void addExtraEarlyResamplingMethodsToCombos();
67 void removeExtraEarlyResamplingMethodsFromCombos();
68};
69
71
72#endif // QGSRESAMPLINGUTILS_H
Represents a raster layer.