18 #ifndef QGSRASTERRESAMPLEFILTER_H 19 #define QGSRASTERRESAMPLEFILTER_H 76 #endif // QGSRASTERRESAMPLEFILTER_H virtual int bandCount() const =0
Get number of bands.
A rectangle specified with double values.
void setMaxOversampling(double os)
Interface for resampling rasters (e.g.
virtual void readXML(const QDomElement &filterElem)
Sets base class members from xml.
Resample filter pipe for rasters.
virtual QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)
Read block of data using given extent and size.
QgsRasterResampler * mZoomedOutResampler
Resampler used if raster resolution is higher than raster resolution (zoomed out).
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
double maxOversampling() const
virtual QGis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
Base class for processing filters like renderers, reprojector, resampler etc.
double mMaxOversampling
Maximum boundary for oversampling (to avoid too much data traffic).
virtual bool setInput(QgsRasterInterface *input)
Set input.
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
const QgsRasterResampler * zoomedOutResampler() const
DataType
Raster data types.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
QgsRasterResampler * mZoomedInResampler
Resampler used if screen resolution is higher than raster resolution (zoomed in). ...
Feedback object tailored for raster block reading.
const QgsRasterResampler * zoomedInResampler() const