QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Feedback object tailored for raster block reading. More...
#include <qgsrasterinterface.h>
Public Member Functions | |
QgsRasterBlockFeedback (QObject *parent=nullptr) | |
Construct a new raster block feedback object. More... | |
void | appendError (const QString &error) |
Appends an error message to the stored list of errors. More... | |
QStringList | errors () const |
Returns a list of any errors encountered while retrieving the raster block. More... | |
bool | isPreviewOnly () const |
Whether the raster provider should return only data that are already available without waiting for full result. More... | |
virtual void | onNewData () |
May be emitted by raster data provider to indicate that some partial data are available and a new preview image may be produced. More... | |
bool | renderPartialOutput () const |
Whether our painter is drawing to a temporary image used just by this layer. More... | |
void | setPreviewOnly (bool preview) |
set flag whether the block request is for preview purposes only More... | |
void | setRenderPartialOutput (bool enable) |
Set whether our painter is drawing to a temporary image used just by this layer. More... | |
Public Member Functions inherited from QgsFeedback | |
QgsFeedback (QObject *parent=nullptr) | |
Construct a feedback object. More... | |
bool | isCanceled () const SIP_HOLDGIL |
Tells whether the operation has been canceled already. More... | |
double | progress () const SIP_HOLDGIL |
Returns the current progress reported by the feedback object. More... | |
void | setProgress (double progress) |
Sets the current progress for the feedback object. More... | |
Additional Inherited Members | |
Public Slots inherited from QgsFeedback | |
void | cancel () |
Tells the internal routines that the current operation should be canceled. This should be run by the main thread. More... | |
Signals inherited from QgsFeedback | |
void | canceled () |
Internal routines can connect to this signal if they use event loop. More... | |
void | progressChanged (double progress) |
Emitted when the feedback object reports a progress change. More... | |
Feedback object tailored for raster block reading.
Definition at line 40 of file qgsrasterinterface.h.
|
inline |
Construct a new raster block feedback object.
Definition at line 46 of file qgsrasterinterface.h.
|
inline |
Appends an error message to the stored list of errors.
Should be called whenever an error is encountered while retrieving a raster block.
Definition at line 86 of file qgsrasterinterface.h.
|
inline |
Returns a list of any errors encountered while retrieving the raster block.
Definition at line 94 of file qgsrasterinterface.h.
|
inline |
Whether the raster provider should return only data that are already available without waiting for full result.
By default this flag is not enabled.
Definition at line 59 of file qgsrasterinterface.h.
|
inlinevirtual |
May be emitted by raster data provider to indicate that some partial data are available and a new preview image may be produced.
Definition at line 52 of file qgsrasterinterface.h.
|
inline |
Whether our painter is drawing to a temporary image used just by this layer.
Definition at line 71 of file qgsrasterinterface.h.
|
inline |
set flag whether the block request is for preview purposes only
Definition at line 65 of file qgsrasterinterface.h.
|
inline |
Set whether our painter is drawing to a temporary image used just by this layer.
Definition at line 77 of file qgsrasterinterface.h.