QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSRASTERRESAMPLEFILTER_H
19 #define QGSRASTERRESAMPLEFILTER_H
21 #include "qgis_core.h"
58 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const override;
61 void readXml(
const QDomElement &filterElem )
override;
70 double mMaxOversampling = 2.0;
75 #endif // QGSRASTERRESAMPLEFILTER_H
DataType
Raster data types.
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Interface for resampling rasters (e.g.
A rectangle specified with double values.
virtual bool setInput(QgsRasterInterface *input)
Set input.
virtual Qgis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
virtual void readXml(const QDomElement &filterElem)
Sets base class members from xml. Usually called from create() methods of subclasses.
std::unique_ptr< QgsRasterResampler > mZoomedInResampler
Resampler used if screen resolution is higher than raster resolution (zoomed in). 0 means no resampli...
double maxOversampling() const
Base class for processing filters like renderers, reprojector, resampler etc.
Resample filter pipe for rasters.
Feedback object tailored for raster block reading.
std::unique_ptr< QgsRasterResampler > mZoomedOutResampler
Resampler used if raster resolution is higher than raster resolution (zoomed out)....
const QgsRasterResampler * zoomedInResampler() const
virtual int bandCount() const =0
Gets number of bands.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)=0
Read block of data using given extent and size.
const QgsRasterResampler * zoomedOutResampler() const
void setMaxOversampling(double os)