2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterNuller : QgsRasterInterface
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasternuller.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsRasterNuller( QgsRasterInterface* input = 0 );
|
|
|
|
~QgsRasterNuller();
|
|
|
|
|
|
|
|
struct NoData
|
|
|
|
{
|
|
|
|
double min;
|
|
|
|
double max;
|
|
|
|
};
|
|
|
|
|
2015-11-12 19:35:14 +11:00
|
|
|
virtual QgsRasterNuller * clone() const /Factory/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int bandCount() const;
|
|
|
|
|
2016-07-21 22:01:38 +10:00
|
|
|
Qgis::DataType dataType( int bandNo ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2012-10-11 16:11:45 +02:00
|
|
|
QgsRasterBlock *block( int bandNo, const QgsRectangle &extent, int width, int height ) / Factory /;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2015-10-07 11:55:34 +11:00
|
|
|
void setNoData( int bandNo, const QgsRasterRangeList& noData );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-04-29 13:27:36 +02:00
|
|
|
QgsRasterRangeList noData( int bandNo ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
/** \brief Set output no data value. */
|
2013-04-29 13:27:36 +02:00
|
|
|
void setOutputNoDataValue( int bandNo, double noData );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|