QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Interface for resampling rasters (e.g. More...
#include <qgsrasterresampler.h>
Public Member Functions | |
virtual | ~QgsRasterResampler ()=default |
virtual QgsRasterResampler * | clone () const =0 |
Gets a deep copy of this object. | |
virtual Q_DECL_DEPRECATED void | resample (const QImage &srcImage, QImage &dstImage)=0 |
Resamples a source image to a destination image. | |
virtual int | tileBufferPixels () const |
Returns the optional tile buffer size in pixels. | |
virtual QString | type () const =0 |
Gets a descriptive type identifier for this raster resampler. | |
Interface for resampling rasters (e.g.
to have a smoother appearance)
Definition at line 33 of file qgsrasterresampler.h.
|
virtualdefault |
|
pure virtual |
Gets a deep copy of this object.
Needs to be reimplemented by subclasses. Ownership is transferred to the caller.
Implemented in QgsBilinearRasterResampler, and QgsCubicRasterResampler.
|
pure virtual |
Resamples a source image to a destination image.
The size of the passed destination image should be respected during the resampling process.
Implemented in QgsBilinearRasterResampler, and QgsCubicRasterResampler.
|
inlinevirtual |
Returns the optional tile buffer size in pixels.
This represents the size to buffer individual resampled tile requests prior to resampling, in order to avoid rendering artifacts at the edges of raster tile boundaries.
Reimplemented in QgsBilinearRasterResampler, and QgsCubicRasterResampler.
Definition at line 85 of file qgsrasterresampler.h.
|
pure virtual |
Gets a descriptive type identifier for this raster resampler.
Needs to be implemented by subclasses.
Implemented in QgsBilinearRasterResampler, and QgsCubicRasterResampler.