15 #ifndef QGSRASTERLAYERSAVEASDIALOG_H 16 #define QGSRASTERLAYERSAVEASDIALOG_H 18 #include "ui_qgsrasterlayersaveasdialogbase.h" 27 class QgsRasterFormatOptionsWidget;
61 Qt::WindowFlags f =
nullptr );
67 double xResolution()
const;
68 double yResolution()
const;
69 int maximumTileSizeX()
const;
70 int maximumTileSizeY()
const;
71 bool tileMode()
const;
72 bool addToCanvas()
const;
73 QString outputFileName()
const;
79 QString outputLayerName()
const;
80 QString outputFormat()
const;
82 QStringList createOptions()
const;
86 QList< int > pyramidsList()
const;
96 void accept()
override;
99 void mRawModeRadioButton_toggled(
bool );
100 void mFormatComboBox_currentIndexChanged(
const QString &text );
101 void mResolutionRadioButton_toggled(
bool ) { toggleResolutionSize(); }
102 void mOriginalResolutionPushButton_clicked() { setOriginalResolution(); }
103 void mXResolutionLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcSize(); }
104 void mYResolutionLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcSize(); }
106 void mOriginalSizePushButton_clicked() { setOriginalSize(); }
107 void mColumnsLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcResolution(); }
108 void mRowsLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcResolution(); }
110 void mAddNoDataManuallyToolButton_clicked();
111 void mLoadTransparentNoDataToolButton_clicked();
112 void mRemoveSelectedNoDataToolButton_clicked();
113 void mRemoveAllNoDataToolButton_clicked();
114 void noDataCellTextEdited(
const QString &text );
115 void mTileModeCheckBox_toggled(
bool toggled );
116 void mPyramidsGroupBox_toggled(
bool toggled );
117 void populatePyramidsLevels();
118 void extentChanged();
130 QVector<bool> mNoDataToEdited;
132 void setValidators();
133 void toggleResolutionSize();
135 void setOriginalResolution();
136 void setOriginalSize();
138 void recalcResolution();
139 void updateResolutionStateMsg();
140 void recalcResolutionSize();
142 void addNoDataRow(
double min,
double max );
143 void setNoDataToEdited(
int row );
144 double noDataCellValue(
int row,
int column )
const;
145 void adjustNoDataCellWidth(
int row,
int column );
146 bool validate()
const;
148 bool outputLayerExists()
const;
150 void insertAvailableOutputFormats();
152 friend class TestQgsRasterLayerSaveAsDialog;
156 #endif // QGSRASTERLAYERSAVEASDIALOG_H
A rectangle specified with double values.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
QStringList pyramidsConfigOptions() const
QList< QgsRasterRange > QgsRasterRangeList
QString pyramidsResamplingMethod() const
This class represents a coordinate reference system (CRS).
const QgsCoordinateReferenceSystem & outputCrs
QgsRaster::RasterPyramidsFormat pyramidsFormat() const
Base class for raster data providers.