34   nuller->mNoData = mNoData;
    35   nuller->mOutputNoData = mOutputNoData;
    36   nuller->mHasOutputNoData = mHasOutputNoData;
    42   if ( bandNo > mOutputNoData.
size() )
    44     mOutputNoData.
resize( bandNo );
    45     mHasOutputNoData.
resize( bandNo );
    47   mOutputNoData[bandNo-1] = 
noData;
    48   mHasOutputNoData[bandNo-1] = 
true;
    53   if ( bandNo > mNoData.size() )
    55     mNoData.resize( bandNo );
    57   mNoData[bandNo-1] = 
noData;
    74   return block2( bandNo, extent, width, height );
   102     if ( mHasOutputNoData.
value( bandNo - 1 ) )
   104       noDataValue = mOutputNoData.
value( bandNo - 1 );
   117   for ( 
int i = 0; i < height; i++ )
   119     for ( 
int j = 0; j < width; j++ )
   121       double value = inputBlock->
value( i, j );
   123       bool isNoData = inputBlock->
isNoData( i, j );
   135         outputBlock->
setValue( i, j, value );
 virtual int bandCount() const =0
Get number of bands. 
 
A rectangle specified with double values. 
 
Unknown or unspecified type. 
 
static bool contains(double value, const QgsRasterRangeList &rangeList)
Test if value is within the list of ranges. 
 
bool setValue(int row, int column, double value)
Set value on position. 
 
Raster pipe that deals with null values. 
 
QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height) override
Read block of data using given extent and size. 
 
QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr) override
Read block of data using given extent and size. 
 
bool isNoData(int row, int column)
Check if value at position is no data. 
 
virtual QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)
Read block of data using given extent and size. 
 
bool setIsNoData(int row, int column)
Set no data on pixel. 
 
QgsRasterNuller * clone() const override
Clone itself, create deep copy. 
 
#define QgsDebugMsgLevel(str, level)
 
static bool typeIsColor(QGis::DataType type)
Returns true if data type is color. 
 
QgsRasterRangeList noData(int bandNo) 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. 
 
void setOutputNoDataValue(int bandNo, double noData)
Set output no data value. 
 
void setNoData(int bandNo, const QgsRasterRangeList &noData)
 
virtual QgsRectangle extent()
Get the extent of the interface. 
 
QGis::DataType dataType() const
Returns data type. 
 
QgsRasterNuller(QgsRasterInterface *input=nullptr)
 
DataType
Raster data types. 
 
double value(int row, int column) const
Read a single value if type of block is numeric. 
 
bool hasNoDataValue() const
True if the block has no data value. 
 
QGis::DataType dataType(int bandNo) const override
Returns data type for the band specified by number. 
 
QgsRasterInterface * mInput
 
double noDataValue() const
Return no data value. 
 
Feedback object tailored for raster block reading. 
 
int bandCount() const override
Get number of bands.