QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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
25class QgsRasterLayer;
26class QComboBox;
27class QDoubleSpinBox;
28class QCheckBox;
29
31#define SIP_NO_FILE
32
38class GUI_EXPORT QgsResamplingUtils : public QObject
39{
40 Q_OBJECT
41
42 QgsRasterLayer *mRasterLayer = nullptr;
43 QComboBox *mZoomedInResamplingComboBox = nullptr;
44 QComboBox *mZoomedOutResamplingComboBox = nullptr;
45 QDoubleSpinBox *mMaximumOversamplingSpinBox = nullptr;
46 QCheckBox *mCbEarlyResampling = nullptr;
47
48 QgsResamplingUtils( const QgsResamplingUtils & ) = delete;
49 QgsResamplingUtils &operator=( const QgsResamplingUtils & ) = delete;
50
51 public:
53 QgsResamplingUtils();
54
56 void initWidgets( QgsRasterLayer *rasterLayer, QComboBox *zoomedInResamplingComboBox, QComboBox *zoomedOutResamplingComboBox, QDoubleSpinBox *maximumOversamplingSpinBox, QCheckBox *cbEarlyResampling );
57
59 void refreshWidgetsFromLayer();
60
62 void refreshLayerFromWidgets();
63
64 private:
65 void addExtraEarlyResamplingMethodsToCombos();
66 void removeExtraEarlyResamplingMethodsFromCombos();
67};
68
70
71#endif // QGSRESAMPLINGUTILS_H
Represents a raster layer.