QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | List of all members
QgsCubicRasterResampler Class Reference

Cubic Raster Resampler. More...

#include <qgscubicrasterresampler.h>

Inheritance diagram for QgsCubicRasterResampler:
Inheritance graph
[legend]

Public Member Functions

 QgsCubicRasterResampler ()=default
 Constructor for QgsCubicRasterResampler. More...
 
QgsCubicRasterResamplerclone () const override
 Gets a deep copy of this object. More...
 
Q_DECL_DEPRECATED void resample (const QImage &srcImage, QImage &dstImage) override
 Resamples a source image to a destination image. More...
 
QImage resampleV2 (const QImage &source, const QSize &size) override
 Resamples a source image to the specified size. More...
 
int tileBufferPixels () const override
 Returns the optional tile buffer size in pixels. More...
 
QString type () const override
 Gets a descriptive type identifier for this raster resampler. More...
 
virtual QImage resampleV2 (const QImage &source, const QSize &size)=0
 Resamples a source image to the specified size. More...
 
- Public Member Functions inherited from QgsRasterResampler
virtual ~QgsRasterResampler ()=default
 
virtual QgsRasterResamplerclone () const =0
 Gets a deep copy of this object. More...
 
virtual Q_DECL_DEPRECATED void resample (const QImage &srcImage, QImage &dstImage)=0
 Resamples a source image to a destination image. More...
 
virtual int tileBufferPixels () const
 Returns the optional tile buffer size in pixels. More...
 
virtual QString type () const =0
 Gets a descriptive type identifier for this raster resampler. More...
 

Detailed Description

Cubic Raster Resampler.

Definition at line 32 of file qgscubicrasterresampler.h.

Constructor & Destructor Documentation

◆ QgsCubicRasterResampler()

QgsCubicRasterResampler::QgsCubicRasterResampler ( )
default

Constructor for QgsCubicRasterResampler.

Member Function Documentation

◆ clone()

QgsCubicRasterResampler * QgsCubicRasterResampler::clone ( ) const
overridevirtual

Gets a deep copy of this object.

Needs to be reimplemented by subclasses. Ownership is transferred to the caller.

Implements QgsRasterResampler.

Definition at line 23 of file qgscubicrasterresampler.cpp.

◆ resample()

Q_NOWARN_DEPRECATED_PUSH void QgsCubicRasterResampler::resample ( const QImage &  srcImage,
QImage &  dstImage 
)
overridevirtual

Resamples a source image to a destination image.

The size of the passed destination image should be respected during the resampling process.

Deprecated:
since QGIS 3.10.1, use the more efficient QgsRasterResamplerV2 interface instead.

Implements QgsRasterResampler.

Definition at line 34 of file qgscubicrasterresampler.cpp.

◆ resampleV2()

QImage QgsCubicRasterResampler::resampleV2 ( const QImage &  source,
const QSize &  size 
)
overridevirtual

Resamples a source image to the specified size.

Returns the resampled image, or a null QImage if the resampling fails.

Implements QgsRasterResamplerV2.

Definition at line 28 of file qgscubicrasterresampler.cpp.

◆ tileBufferPixels()

int QgsCubicRasterResampler::tileBufferPixels ( ) const
overridevirtual

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.

Since
QGIS 3.10.1

Reimplemented from QgsRasterResampler.

Definition at line 45 of file qgscubicrasterresampler.cpp.

◆ type()

Q_NOWARN_DEPRECATED_POP QString QgsCubicRasterResampler::type ( ) const
overridevirtual

Gets a descriptive type identifier for this raster resampler.

Needs to be implemented by subclasses.

Implements QgsRasterResampler.

Definition at line 40 of file qgscubicrasterresampler.cpp.


The documentation for this class was generated from the following files: