QGIS/python/core/raster/qgsrasterdrawer.sip
Denis Rouzaud b119744773 replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively (#4000)
* replace cancelling and cancelled by canceling and canceled, respectively

see https://github.com/qgis/qgis3_UIX_discussion/issues/19

* replace cancellation by cancelation
2017-01-16 22:27:14 +01:00

32 lines
1.1 KiB
Plaintext

/** \ingroup core
* The drawing pipe for raster layers.
*/
class QgsRasterDrawer
{
%TypeHeaderCode
#include <qgsrasterdrawer.h>
%End
public:
QgsRasterDrawer( QgsRasterIterator *iterator );
/** Draws raster data.
* @param p destination QPainter
* @param viewPort viewport to render
* @param theQgsMapToPixel map to pixel converter
* @param feedback optional raster feedback object for cancelation/preview. Added in QGIS 3.0.
*/
void draw( QPainter* p, QgsRasterViewPort* viewPort, const QgsMapToPixel* theQgsMapToPixel, QgsRasterBlockFeedback* feedback = nullptr );
protected:
/** Draws raster part
* @param p the painter to draw to
* @param viewPort view port to draw to
* @param img image to draw
* @param topLeftCol Left position relative to left border of viewport
* @param topLeftRow Top position relative to top border of viewport
* @param mapToPixel map to device coordinate transformation info
* @note not available in python bindings
*/
//void drawImage( QPainter* p, QgsRasterViewPort* viewPort, const QImage& img, int topLeftCol, int topLeftRow ) const;
};