28 #include <QDoubleSpinBox> 
   31 QgsResamplingUtils::QgsResamplingUtils() = 
default;
 
   34                                       QComboBox  *zoomedInResamplingComboBox,
 
   35                                       QComboBox *zoomedOutResamplingComboBox,
 
   36                                       QDoubleSpinBox *maximumOversamplingSpinBox,
 
   37                                       QCheckBox *cbEarlyResampling )
 
   39   mRasterLayer = rasterLayer;
 
   40   mZoomedInResamplingComboBox = zoomedInResamplingComboBox;
 
   41   mZoomedOutResamplingComboBox = zoomedOutResamplingComboBox;
 
   42   mMaximumOversamplingSpinBox = maximumOversamplingSpinBox;
 
   43   mCbEarlyResampling = cbEarlyResampling;
 
   54 void QgsResamplingUtils::refreshWidgetsFromLayer()
 
   57   mCbEarlyResampling->setVisible(
 
   63     mZoomedInResamplingComboBox->setCurrentIndex( mZoomedInResamplingComboBox->findData( 
static_cast<int>( provider->
zoomedInResamplingMethod() ) ) );
 
   64     mZoomedOutResamplingComboBox->setCurrentIndex( mZoomedOutResamplingComboBox->findData( 
static_cast<int>( provider->
zoomedOutResamplingMethod() ) ) );
 
   75       if ( zoomedInResampler )
 
   77         if ( zoomedInResampler->
type() == QLatin1String( 
"bilinear" ) )
 
   81         else if ( zoomedInResampler->
type() == QLatin1String( 
"cubic" ) )
 
   92       if ( zoomedOutResampler )
 
   94         if ( zoomedOutResampler->
type() == QLatin1String( 
"bilinear" ) )
 
   98         else if ( zoomedOutResampler->
type() == QLatin1String( 
"cubic" ) )
 
  107       mMaximumOversamplingSpinBox->setValue( resampleFilter->
maxOversampling() );
 
  113 void QgsResamplingUtils::refreshLayerFromWidgets()
 
  117       mZoomedInResamplingComboBox->itemData( mZoomedInResamplingComboBox->currentIndex() ).toInt() );
 
  120       mZoomedOutResamplingComboBox->itemData( mZoomedOutResamplingComboBox->currentIndex() ).toInt() );
 
  133   if ( resampleFilter )
 
  137     switch ( zoomedInMethod )
 
  156     switch ( zoomedOutMethod )