QGIS API Documentation  2.99.0-Master (8ec3eaf)
Public Member Functions | Protected Member Functions | List of all members
QgsRasterDrawer Class Reference

The drawing pipe for raster layers. More...

#include <qgsrasterdrawer.h>

Public Member Functions

 QgsRasterDrawer (QgsRasterIterator *iterator)
 
void draw (QPainter *p, QgsRasterViewPort *viewPort, const QgsMapToPixel *theQgsMapToPixel, QgsRasterBlockFeedback *feedback=nullptr)
 Draws raster data. More...
 

Protected Member Functions

void drawImage (QPainter *p, QgsRasterViewPort *viewPort, const QImage &img, int topLeftCol, int topLeftRow, const QgsMapToPixel *mapToPixel=nullptr) const
 Draws raster part. More...
 

Detailed Description

The drawing pipe for raster layers.

Definition at line 34 of file qgsrasterdrawer.h.

Constructor & Destructor Documentation

§ QgsRasterDrawer()

QgsRasterDrawer::QgsRasterDrawer ( QgsRasterIterator iterator)

Definition at line 30 of file qgsrasterdrawer.cpp.

Member Function Documentation

§ draw()

void QgsRasterDrawer::draw ( QPainter *  p,
QgsRasterViewPort viewPort,
const QgsMapToPixel theQgsMapToPixel,
QgsRasterBlockFeedback feedback = nullptr 
)

Draws raster data.

Parameters
pdestination QPainter
viewPortviewport to render
theQgsMapToPixelmap to pixel converter
feedbackoptional raster feedback object for cancellation/preview. Added in QGIS 3.0.

Definition at line 34 of file qgsrasterdrawer.cpp.

§ drawImage()

void QgsRasterDrawer::drawImage ( QPainter *  p,
QgsRasterViewPort viewPort,
const QImage &  img,
int  topLeftCol,
int  topLeftRow,
const QgsMapToPixel mapToPixel = nullptr 
) const
protected

Draws raster part.

Parameters
pthe painter to draw to
viewPortview port to draw to
imgimage to draw
topLeftColLeft position relative to left border of viewport
topLeftRowTop position relative to top border of viewport
mapToPixelmap to device coordinate transformation info
Note
not available in python bindings

Definition at line 112 of file qgsrasterdrawer.cpp.


The documentation for this class was generated from the following files: