Class: QgsRasterBlockFeedback¶
Feedback object tailored for raster block reading.
Class Hierarchy¶
Base classes¶
Base class for feedback objects to be used for cancellation of something running in a worker thread.  | 
|
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  | 
|
Returns the render context of the associated block reading  | 
|
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  | 
|
Sets the render context of the associated block reading  | 
|
Set whether our painter is drawing to a temporary image used just by this layer  | 
- class qgis.core.QgsRasterBlockFeedback[source]¶
 Bases:
QgsFeedback- __init__(parent: QObject | None = None)
 Construct a new raster block feedback object
- Parameters:
 parent (Optional[QObject] = None)
- appendError(self, error: str | None)[source]¶
 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
Added in version 3.8.0.
- Parameters:
 error (Optional[str])
- errors(self) List[str][source]¶
 Returns a list of any errors encountered while retrieving the raster block.
See also
Added in version 3.8.0.
- Return type:
 List[str]
- isPreviewOnly(self) bool[source]¶
 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
- onNewData(self)[source]¶
 May be emitted by raster data provider to indicate that some partial data are available and a new preview image may be produced
- renderContext(self) QgsRenderContext[source]¶
 Returns the render context of the associated block reading
See also
Added in version 3.24.0.
- Return type:
 
- renderPartialOutput(self) bool[source]¶
 Whether our painter is drawing to a temporary image used just by this layer
See also
- Return type:
 bool
- setPreviewOnly(self, preview: bool)[source]¶
 set flag whether the block request is for preview purposes only
See also
- Parameters:
 preview (bool)
- setRenderContext(self, renderContext: QgsRenderContext)[source]¶
 Sets the render context of the associated block reading
See also
Added in version 3.24.0.
- Parameters:
 renderContext (QgsRenderContext)