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 virtual int bandCount() const =0
Gets number of bands.
A rectangle specified with double values.
double maxOversampling() const
virtual void readXml(const QDomElement &filterElem)
Sets base class members from xml. Usually called from create() methods of subclasses.
void setMaxOversampling(double os)
Interface for resampling rasters (e.g.
DataType
Raster data types.
Resample filter pipe for rasters.
virtual Qgis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
const QgsRasterResampler * zoomedInResampler() const
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.
virtual void writeXml(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
Base class for processing filters like renderers, reprojector, resampler etc.
virtual bool setInput(QgsRasterInterface *input)
Set input.
std::unique_ptr< QgsRasterResampler > mZoomedOutResampler
Resampler used if raster resolution is higher than raster resolution (zoomed out). 0 mean no resampling (nearest neighbour)
const QgsRasterResampler * zoomedOutResampler() const
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
std::unique_ptr< QgsRasterResampler > mZoomedInResampler
Resampler used if screen resolution is higher than raster resolution (zoomed in). 0 means no resampli...
Feedback object tailored for raster block reading.