Iterator for sequentially processing raster cells.  
 More...
#include <qgsrasteriterator.h>
| 
Classes | 
| struct | RasterPartInfo | 
Detailed Description
Iterator for sequentially processing raster cells. 
Constructor & Destructor Documentation
      
        
          | QgsRasterIterator::~QgsRasterIterator | ( |  | ) |  | 
      
 
 
Member Function Documentation
  
  | 
        
          | int QgsRasterIterator::maximumTileHeight | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | int QgsRasterIterator::maximumTileWidth | ( |  | ) | const |  | inline | 
 
 
      
        
          | 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 
 
 
  
  | 
        
          | void QgsRasterIterator::setMaximumTileHeight | ( | int | h | ) |  |  | inline | 
 
 
  
  | 
        
          | void QgsRasterIterator::setMaximumTileWidth | ( | int | w | ) |  |  | inline | 
 
 
      
        
          | void QgsRasterIterator::startRasterRead | ( | int | bandNumber, | 
        
          |  |  | int | nCols, | 
        
          |  |  | int | nRows, | 
        
          |  |  | const QgsRectangle & | extent | 
        
          |  | ) |  |  | 
      
 
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 |  
 
 
 
      
        
          | void QgsRasterIterator::stopRasterRead | ( | int | bandNumber | ) |  | 
      
 
 
The documentation for this class was generated from the following files: