QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
qgsrasterpyramidsoptionswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrasterpyramidsoptionswidget.h
3 -------------------
4 begin : July 2012
5 copyright : (C) 2012 by Etienne Tourigny
6 email : etourigny dot dev at gmail dot 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 QGSRASTERPYRAMIDSOPTIONSWIDGET_H
19#define QGSRASTERPYRAMIDSOPTIONSWIDGET_H
20
21#include "ui_qgsrasterpyramidsoptionswidgetbase.h"
22#include "qgis_sip.h"
23#include "qgis_gui.h"
24
25class QCheckBox;
26
31class GUI_EXPORT QgsRasterPyramidsOptionsWidget : public QWidget, private Ui::QgsRasterPyramidsOptionsWidgetBase
32{
33 Q_OBJECT
34
35 public:
37 QgsRasterPyramidsOptionsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &provider = "gdal" );
38
39 QStringList configOptions() const { return mSaveOptionsWidget->options(); }
41 const QList<int> overviewList() const { return mOverviewList; }
42
46 Qgis::RasterPyramidFormat pyramidsFormat() const { return cbxPyramidsFormat->currentData().value<Qgis::RasterPyramidFormat>(); }
47
48 QString resamplingMethod() const;
49 void setRasterLayer( QgsRasterLayer *rasterLayer ) { mSaveOptionsWidget->setRasterLayer( rasterLayer ); }
50 void setRasterFileName( const QString &file ) { mSaveOptionsWidget->setRasterFileName( file ); }
51
52 public slots:
53
54 void apply();
55 void checkAllLevels( bool checked );
56
57 private slots:
58
59 void cbxPyramidsLevelsCustom_toggled( bool toggled ) SIP_FORCE;
60 void cbxPyramidsFormat_currentIndexChanged( int index ) SIP_FORCE;
61 void setOverviewList() SIP_FORCE;
62 void updateUi() SIP_FORCE;
63
64 signals:
65
69 void overviewListChanged();
70
74 void someValueChanged();
75
76 private:
77 QString mProvider;
78 QList<int> mOverviewList;
79 QMap<int, QCheckBox *> mOverviewCheckBoxes;
80};
81
82// clazy:excludeall=qstring-allocations
83
84#endif // QGSRASTERLAYERSAVEASDIALOG_H
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:4529
A widget to select format-specific raster saving options.
Represents a raster layer.
A widget to select format-specific raster saving options.
QgsRasterFormatSaveOptionsWidget * createOptionsWidget()
Qgis::RasterPyramidFormat pyramidsFormat() const
Returns the selected pyramid format.
void setRasterLayer(QgsRasterLayer *rasterLayer)
#define SIP_FORCE
Definition qgis_sip.h:131
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:76