QGIS/python/core/raster/qgsrasternuller.sip
Martin Dobias b6b5afd885 [FEATURE] Ability to cancel rendering of rasters + WMS/WCS support
The improvement allows immediate cancellation of raster rendering
in progress. Until now, even when map rendering got cancelled
(e.g. by zooming of panning canvas), the GUI got blocked while waiting
for raster layers to finish their rendering (only vector layers have
had support for cancellation). This should allow for much smoother
user experience while browsing maps including rasters.

The cancellation is supported currently by WMS/WMTS and WCS providers.
GDAL provider may also get support thanks to improvements in GDAL 2.

Funded by Land Information New Zealand.
2016-07-24 23:16:33 +02:00

31 lines
763 B
Plaintext

class QgsRasterNuller : QgsRasterInterface
{
%TypeHeaderCode
#include <qgsrasternuller.h>
%End
public:
QgsRasterNuller( QgsRasterInterface* input = 0 );
~QgsRasterNuller();
struct NoData
{
double min;
double max;
};
virtual QgsRasterNuller * clone() const /Factory/;
int bandCount() const;
Qgis::DataType dataType( int bandNo ) const;
QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback* feedback = nullptr ) / Factory /;
void setNoData( int bandNo, const QgsRasterRangeList& noData );
QgsRasterRangeList noData( int bandNo ) const;
/** \brief Set output no data value. */
void setOutputNoDataValue( int bandNo, double noData );
};