QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
The drawing pipe for raster layers. More...
#include <qgsrasterdrawer.h>
Public Member Functions | |
QgsRasterDrawer (QgsRasterIterator *iterator) | |
The QgsRasterDrawer constructor. | |
Q_DECL_DEPRECATED | QgsRasterDrawer (QgsRasterIterator *iterator, double dpiTarget) |
The QgsRasterDrawer constructor. | |
void | draw (QgsRenderContext &context, QgsRasterViewPort *viewPort, QgsRasterBlockFeedback *feedback=nullptr) |
Draws raster data. | |
void | draw (QPainter *p, QgsRasterViewPort *viewPort, const QgsMapToPixel *qgsMapToPixel, QgsRasterBlockFeedback *feedback=nullptr) |
Draws raster data. | |
Protected Member Functions | |
void | drawImage (QPainter *p, QgsRasterViewPort *viewPort, const QImage &img, int topLeftCol, int topLeftRow, const QgsMapToPixel *mapToPixel=nullptr) const |
Draws raster part. | |
The drawing pipe for raster layers.
Definition at line 37 of file qgsrasterdrawer.h.
QgsRasterDrawer::QgsRasterDrawer | ( | QgsRasterIterator * | iterator, |
double | dpiTarget | ||
) |
The QgsRasterDrawer constructor.
iterator | the raster iterator to fetch data from |
dpiTarget | the target dpi (dots per inch) to be taken into consideration when rendering |
Definition at line 30 of file qgsrasterdrawer.cpp.
QgsRasterDrawer::QgsRasterDrawer | ( | QgsRasterIterator * | iterator | ) |
The QgsRasterDrawer constructor.
iterator | the raster iterator to fetch data from |
Definition at line 36 of file qgsrasterdrawer.cpp.
void QgsRasterDrawer::draw | ( | QgsRenderContext & | context, |
QgsRasterViewPort * | viewPort, | ||
QgsRasterBlockFeedback * | feedback = nullptr |
||
) |
Draws raster data.
context | the render context |
viewPort | viewport to render |
feedback | optional raster feedback object for cancellation/preview. |
Definition at line 41 of file qgsrasterdrawer.cpp.
void QgsRasterDrawer::draw | ( | QPainter * | p, |
QgsRasterViewPort * | viewPort, | ||
const QgsMapToPixel * | qgsMapToPixel, | ||
QgsRasterBlockFeedback * | feedback = nullptr |
||
) |
Draws raster data.
p | destination QPainter |
viewPort | viewport to render |
qgsMapToPixel | map to pixel converter |
feedback | optional raster feedback object for cancellation/preview. Added in QGIS 3.0. |
Definition at line 49 of file qgsrasterdrawer.cpp.
|
protected |
Draws raster part.
p | the painter to draw to |
viewPort | view port to draw to |
img | image to draw |
topLeftCol | Left position relative to left border of viewport |
topLeftRow | Top position relative to top border of viewport |
mapToPixel | map to device coordinate transformation info |
Definition at line 134 of file qgsrasterdrawer.cpp.