Class: QgsRasterBlockFeedback¶
- class qgis.core.QgsRasterBlockFeedback¶
Bases:
QgsFeedback
Feedback object tailored for raster block reading.
New in version 3.0.
QgsRasterBlockFeedback(parent: QObject = None) Construct a new raster block feedback object
Methods
Appends an error message to the stored list of errors.
Returns a list of any errors encountered while retrieving the raster block.
Whether the raster provider should return only data that are already available without waiting for full result.
May be emitted by raster data provider to indicate that some partial data are available and a new preview image may be produced
Whether our painter is drawing to a temporary image used just by this layer
set flag whether the block request is for preview purposes only
Set whether our painter is drawing to a temporary image used just by this layer
- appendError(self, error: str)¶
Appends an error message to the stored list of errors. Should be called whenever an error is encountered while retrieving a raster block.
See also
New in version 3.8.0.
- Parameters
error (str) –
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- errors(self) List[str] ¶
Returns a list of any errors encountered while retrieving the raster block.
See also
New in version 3.8.0.
- Return type
List[str]
- isPreviewOnly(self) bool ¶
Whether the raster provider should return only data that are already available without waiting for full result. By default this flag is not enabled.
See also
- Return type
bool
- isSignalConnected(self, QMetaMethod) bool ¶
- onNewData(self)¶
May be emitted by raster data provider to indicate that some partial data are available and a new preview image may be produced
- receivers(self, PYQT_SIGNAL) int ¶
- renderPartialOutput(self) bool ¶
Whether our painter is drawing to a temporary image used just by this layer
See also
- Return type
bool
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setPreviewOnly(self, preview: bool)¶
set flag whether the block request is for preview purposes only
See also
- Parameters
preview (bool) –
- setRenderPartialOutput(self, enable: bool)¶
Set whether our painter is drawing to a temporary image used just by this layer
See also
- Parameters
enable (bool) –
- timerEvent(self, QTimerEvent)¶