mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
class QgsRasterResampler
|
|
{
|
|
%TypeHeaderCode
|
|
#include "qgsrasterresampler.h"
|
|
#include "qgsbilinearrasterresampler.h"
|
|
#include "qgscubicrasterresampler.h"
|
|
|
|
%End
|
|
|
|
%ConvertToSubClassCode
|
|
if (dynamic_cast<QgsBilinearRasterResampler*>(sipCpp) != NULL)
|
|
sipClass = sipClass_QgsBilinearRasterResampler;
|
|
else if (dynamic_cast<QgsCubicRasterResampler*>(sipCpp) != NULL)
|
|
sipClass = sipClass_QgsCubicRasterResampler;
|
|
else
|
|
sipClass = 0;
|
|
%End
|
|
|
|
public:
|
|
virtual void resample( const QImage& srcImage, QImage& dstImage ) = 0;
|
|
virtual QString type() const = 0;
|
|
virtual QgsRasterResampler * clone() const = 0;
|
|
};
|
|
|
|
class QgsBilinearRasterResampler: QgsRasterResampler
|
|
{
|
|
%TypeHeaderCode
|
|
#include "qgsbilinearrasterresampler.h"
|
|
%End
|
|
public:
|
|
QgsBilinearRasterResampler();
|
|
~QgsBilinearRasterResampler();
|
|
|
|
void resample( const QImage& srcImage, QImage& dstImage );
|
|
QString type() const;
|
|
QgsRasterResampler * clone() const;
|
|
};
|
|
|
|
class QgsCubicRasterResampler: QgsRasterResampler
|
|
{
|
|
%TypeHeaderCode
|
|
#include "qgscubicrasterresampler.h"
|
|
%End
|
|
public:
|
|
QgsCubicRasterResampler();
|
|
~QgsCubicRasterResampler();
|
|
void resample( const QImage& srcImage, QImage& dstImage );
|
|
QString type() const;
|
|
QgsRasterResampler * clone() const;
|
|
};
|