QGIS API Documentation 3.41.0-Master (8825f861dd5)
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, QComboBox *zoomedInResamplingComboBox, QComboBox *zoomedOutResamplingComboBox, QDoubleSpinBox *maximumOversamplingSpinBox, QCheckBox *cbEarlyResampling );
56
58 void refreshWidgetsFromLayer();
59
61 void refreshLayerFromWidgets();
62
63 private:
64 void addExtraEarlyResamplingMethodsToCombos();
65 void removeExtraEarlyResamplingMethodsFromCombos();
66};
67
69
70#endif // QGSRESAMPLINGUTILS_H
Represents a raster layer.