2017-06-02 23:35:10 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasterresampler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterResampler
|
|
|
|
{
|
2017-06-02 23:35:10 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Interface for resampling rasters (e.g. to have a smoother appearance)
|
2017-06-02 23:35:10 +02:00
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-02 23:35:10 +02:00
|
|
|
#include "qgsrasterresampler.h"
|
|
|
|
#include "qgsbilinearrasterresampler.h"
|
|
|
|
#include "qgscubicrasterresampler.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
%ConvertToSubClassCode
|
2017-06-02 23:35:10 +02:00
|
|
|
if ( dynamic_cast<QgsBilinearRasterResampler *>( sipCpp ) != NULL )
|
|
|
|
sipType = sipType_QgsBilinearRasterResampler;
|
|
|
|
else if ( dynamic_cast<QgsCubicRasterResampler *>( sipCpp ) != NULL )
|
|
|
|
sipType = sipType_QgsCubicRasterResampler;
|
|
|
|
else
|
|
|
|
sipType = 0;
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
virtual ~QgsRasterResampler();
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void resample( const QImage &srcImage, QImage &dstImage ) = 0;
|
2017-06-02 23:35:10 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual QString type() const = 0;
|
2017-06-02 23:35:10 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Get a descriptive type identifier for this raster resampler.
|
|
|
|
Needs to be implemented by subclasses.
|
2017-06-02 23:35:10 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
virtual QgsRasterResampler *clone() const = 0 /Factory/;
|
2017-06-02 23:35:10 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Get a deep copy of this object.
|
|
|
|
Needs to be reimplemented by subclasses.
|
|
|
|
Ownership is transferred to the caller.
|
2017-06-02 23:35:10 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-02 23:35:10 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasterresampler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|