2016-02-14 03:50:23 +01:00
|
|
|
/** \ingroup core
|
|
|
|
* The drawing pipe for raster layers.
|
|
|
|
*/
|
2013-06-22 19:37:41 +02:00
|
|
|
class QgsRasterDrawer
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasterdrawer.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsRasterDrawer( QgsRasterIterator *iterator );
|
|
|
|
|
2016-03-02 16:52:58 +01:00
|
|
|
/** Draws raster data.
|
|
|
|
* @param p destination QPainter
|
|
|
|
* @param viewPort viewport to render
|
2016-10-01 17:13:02 +02:00
|
|
|
* @param theQgsMapToPixel map to pixel converter
|
2016-07-22 23:26:47 +02:00
|
|
|
* @param feedback optional raster feedback object for cancellation/preview. Added in QGIS 3.0.
|
2016-03-02 16:52:58 +01:00
|
|
|
*/
|
2016-07-22 23:26:47 +02:00
|
|
|
void draw( QPainter* p, QgsRasterViewPort* viewPort, const QgsMapToPixel* theQgsMapToPixel, QgsRasterBlockFeedback* feedback = nullptr );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
protected:
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Draws raster part
|
2016-02-14 03:50:23 +01:00
|
|
|
* @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
|
|
|
|
*/
|
2015-02-03 20:47:20 +11:00
|
|
|
//void drawImage( QPainter* p, QgsRasterViewPort* viewPort, const QImage& img, int topLeftCol, int topLeftRow ) const;
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|