Iterator for sequentially processing raster cells.  
 More...
#include <qgsrasteriterator.h>
 | 
|   | QgsRasterIterator (QgsRasterInterface *input) | 
|   | 
| const QgsRasterInterface *  | input () const | 
|   | 
| int  | maximumTileHeight () const | 
|   | 
| int  | maximumTileWidth () const | 
|   | 
| bool  | readNextRasterPart (int bandNumber, int &nCols, int &nRows, QgsRasterBlock **block, int &topLeftCol, int &topLeftRow) | 
|   | Fetches next part of raster data, caller takes ownership of the block and caller should delete the block.  More...
  | 
|   | 
| void  | setMaximumTileHeight (int h) | 
|   | 
| void  | setMaximumTileWidth (int w) | 
|   | 
| void  | startRasterRead (int bandNumber, int nCols, int nRows, const QgsRectangle &extent, QgsRasterBlockFeedback *feedback=nullptr) | 
|   | Start reading of raster band.  More...
  | 
|   | 
| void  | stopRasterRead (int bandNumber) | 
|   | 
Iterator for sequentially processing raster cells. 
Definition at line 31 of file qgsrasteriterator.h.
 
◆ QgsRasterIterator()
◆ input()
◆ maximumTileHeight()
  
  
      
        
          | int QgsRasterIterator::maximumTileHeight  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ maximumTileWidth()
  
  
      
        
          | int QgsRasterIterator::maximumTileWidth  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ readNextRasterPart()
      
        
          | bool QgsRasterIterator::readNextRasterPart  | 
          ( | 
          int  | 
          bandNumber,  | 
        
        
           | 
           | 
          int &  | 
          nCols,  | 
        
        
           | 
           | 
          int &  | 
          nRows,  | 
        
        
           | 
           | 
          QgsRasterBlock **  | 
          block,  | 
        
        
           | 
           | 
          int &  | 
          topLeftCol,  | 
        
        
           | 
           | 
          int &  | 
          topLeftRow  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Fetches next part of raster data, caller takes ownership of the block and caller should delete the block. 
- Parameters
 - 
  
    | bandNumber | band to read  | 
    | nCols | number of columns on output device  | 
    | nRows | number of rows on output device  | 
    | block | address of block pointer  | 
    | topLeftCol | top left column  | 
    | topLeftRow | top left row  | 
  
   
- Returns
 - false if the last part was already returned 
 
Definition at line 51 of file qgsrasteriterator.cpp.
 
 
◆ setMaximumTileHeight()
  
  
      
        
          | void QgsRasterIterator::setMaximumTileHeight  | 
          ( | 
          int  | 
          h | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setMaximumTileWidth()
  
  
      
        
          | void QgsRasterIterator::setMaximumTileWidth  | 
          ( | 
          int  | 
          w | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ startRasterRead()
Start reading of raster band. 
Raster data can then be retrieved by calling readNextRasterPart until it returns false. 
- Parameters
 - 
  
    | bandNumber | number of raster band to read  | 
    | nCols | number of columns  | 
    | nRows | number of rows  | 
    | extent | area to read  | 
    | feedback | optional raster feedback object for cancellation/preview. Added in QGIS 2.18.  | 
  
   
Definition at line 28 of file qgsrasteriterator.cpp.
 
 
◆ stopRasterRead()
      
        
          | void QgsRasterIterator::stopRasterRead  | 
          ( | 
          int  | 
          bandNumber | ) | 
           | 
        
      
 
 
The documentation for this class was generated from the following files: