QGIS API Documentation 3.99.0-Master (09f76ad7019)
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
23#include "qgis_gui.h"
24#include "qgis_sip.h"
25
26class QCheckBox;
27
32class GUI_EXPORT QgsRasterPyramidsOptionsWidget : public QWidget, private Ui::QgsRasterPyramidsOptionsWidgetBase
33{
34 Q_OBJECT
35
36 public:
38 QgsRasterPyramidsOptionsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr, const QString &provider = "gdal" );
39
40 QStringList configOptions() const { return mSaveOptionsWidget->options(); }
42 const QList<int> overviewList() const { return mOverviewList; }
43
47 Qgis::RasterPyramidFormat pyramidsFormat() const { return cbxPyramidsFormat->currentData().value<Qgis::RasterPyramidFormat>(); }
48
49 QString resamplingMethod() const;
50 void setRasterLayer( QgsRasterLayer *rasterLayer ) { mSaveOptionsWidget->setRasterLayer( rasterLayer ); }
51 void setRasterFileName( const QString &file ) { mSaveOptionsWidget->setRasterFileName( file ); }
52
58 void tuneForFormat( const QString &driverName );
59
60 public slots:
61
62 void apply();
63 void checkAllLevels( bool checked );
64
65 private slots:
66
67 void cbxPyramidsLevelsCustom_toggled( bool toggled ) SIP_FORCE;
68 void cbxPyramidsFormat_currentIndexChanged( int index ) SIP_FORCE;
69 void setOverviewList() SIP_FORCE;
70 void updateUi() SIP_FORCE;
71
72 signals:
73
78
83
84 private:
85 QString mProvider;
86 QList<int> mOverviewList;
87 QMap<int, QCheckBox *> mOverviewCheckBoxes;
88};
89
90// clazy:excludeall=qstring-allocations
91
92#endif // QGSRASTERLAYERSAVEASDIALOG_H
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:4909
A widget to select format-specific raster saving options.
Represents a raster layer.
void someValueChanged()
Emitted when settings are changed in the widget.
QgsRasterFormatSaveOptionsWidget * createOptionsWidget()
QgsRasterPyramidsOptionsWidget(QWidget *parent=nullptr, const QString &provider="gdal")
Constructor for QgsRasterPyramidsOptionsWidget.
Qgis::RasterPyramidFormat pyramidsFormat() const
Returns the selected pyramid format.
void overviewListChanged()
Emitted when the list of configured overviews is changed.
void setRasterLayer(QgsRasterLayer *rasterLayer)
#define SIP_FORCE
Definition qgis_sip.h:139
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:84