mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3286 c8812cc2-4d05-0410-92ff-de0c093fc19c
33 lines
797 B
C++
33 lines
797 B
C++
#include <iostream>
|
|
|
|
#include <qcheckbox.h>
|
|
#include <qcombobox.h>
|
|
|
|
#include "qgsgeorefwarpoptionsdialog.h"
|
|
|
|
|
|
QgsGeorefWarpOptionsDialog::QgsGeorefWarpOptionsDialog(QWidget* parent)
|
|
: QgsGeorefWarpOptionsDialogBase(parent, NULL, TRUE, 0) {
|
|
|
|
}
|
|
|
|
|
|
void QgsGeorefWarpOptionsDialog::
|
|
getWarpOptions(QgsImageWarper::ResamplingMethod& resampling,
|
|
bool& useZeroForTransparency) {
|
|
resampling = this->resampling;
|
|
useZeroForTransparency = this->useZeroAsTransparency;
|
|
}
|
|
|
|
|
|
void QgsGeorefWarpOptionsDialog::pbnOK_clicked() {
|
|
QgsImageWarper::ResamplingMethod methods[] = {
|
|
QgsImageWarper::NearestNeighbour,
|
|
QgsImageWarper::Bilinear,
|
|
QgsImageWarper::Cubic
|
|
};
|
|
resampling = methods[cmbResampling->currentItem()];
|
|
useZeroAsTransparency = cbxZeroAsTrans->isChecked();
|
|
close();
|
|
}
|