QGIS/python/core/auto_generated/raster/qgsrasterdrawer.sip.in

75 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-06-01 15:39:31 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterdrawer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterDrawer
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
2017-12-15 10:36:55 -04:00
The drawing pipe for raster layers.
2017-06-01 15:39:31 +02:00
%End
%TypeHeaderCode
2017-06-01 15:39:31 +02:00
#include "qgsrasterdrawer.h"
%End
public:
2021-05-03 18:09:24 +07:00
QgsRasterDrawer( QgsRasterIterator *iterator, double dpiTarget ) /Deprecated/;
%Docstring
The QgsRasterDrawer constructor.
:param iterator: the raster iterator to fetch data from
:param dpiTarget: the target dpi (dots per inch) to be taken into consideration when rendering
.. deprecated:: QGIS 3.28.
Use the constructor without the ``dpiTarget`` argument instead, as DPI is now handled by the :py:func:`~QgsRasterDrawer.draw` method which accepts a :py:class:`QgsRenderContext`.
%End
QgsRasterDrawer( QgsRasterIterator *iterator );
2021-05-03 18:09:24 +07:00
%Docstring
The QgsRasterDrawer constructor.
:param iterator: the raster iterator to fetch data from
%End
void draw( QPainter *p, QgsRasterViewPort *viewPort, const QgsMapToPixel *qgsMapToPixel, QgsRasterBlockFeedback *feedback = 0 );
2017-06-01 15:39:31 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Draws raster data.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param p: destination QPainter
:param viewPort: viewport to render
:param qgsMapToPixel: map to pixel converter
:param feedback: optional raster feedback object for cancellation/preview. Added in QGIS 3.0.
%End
void draw( QgsRenderContext &context, QgsRasterViewPort *viewPort, QgsRasterBlockFeedback *feedback = 0 );
%Docstring
Draws raster data.
:param context: the render context
:param viewPort: viewport to render
:param feedback: optional raster feedback object for cancellation/preview.
.. versionadded:: 3.28
2017-06-01 15:39:31 +02:00
%End
protected:
2017-06-01 15:39:31 +02:00
};
2017-06-01 15:39:31 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterdrawer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/