QGIS/python/core/qgsrasterresampler.sip

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-06-14 14:07:53 +02:00
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;
2012-06-14 14:07:53 +02:00
};
class QgsBilinearRasterResampler: QgsRasterResampler
2012-06-14 14:07:53 +02:00
{
%TypeHeaderCode
#include "qgsbilinearrasterresampler.h"
%End
public:
QgsBilinearRasterResampler();
~QgsBilinearRasterResampler();
void resample( const QImage& srcImage, QImage& dstImage );
QString type() const;
QgsRasterResampler * clone() const;
2012-06-14 14:07:53 +02:00
};
class QgsCubicRasterResampler: QgsRasterResampler
2012-06-14 14:07:53 +02:00
{
%TypeHeaderCode
#include "qgscubicrasterresampler.h"
%End
public:
QgsCubicRasterResampler();
~QgsCubicRasterResampler();
void resample( const QImage& srcImage, QImage& dstImage );
QString type() const;
QgsRasterResampler * clone() const;
2012-06-14 14:07:53 +02:00
};