QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Implementation of threaded rendering for mesh layers. More...
#include <qgsmeshlayerrenderer.h>
Public Member Functions | |
QgsMeshLayerRenderer (QgsMeshLayer *layer, QgsRenderContext &context) | |
Ctor. More... | |
~QgsMeshLayerRenderer () override=default | |
QgsFeedback * | feedback () const override |
Access to feedback object of the layer renderer (may be nullptr ) More... | |
bool | forceRasterRender () const override |
Returns true if the renderer must be rendered to a raster paint device (e.g. More... | |
bool | render () override |
Do the rendering (based on data stored in the class). More... | |
Public Member Functions inherited from QgsMapLayerRenderer | |
QgsMapLayerRenderer (const QString &layerID, QgsRenderContext *context=nullptr) | |
Constructor for QgsMapLayerRenderer, with the associated layerID and render context. More... | |
virtual | ~QgsMapLayerRenderer () |
QStringList | errors () const |
Returns list of errors (problems) that happened during the rendering. More... | |
virtual QgsFeedback * | feedback () const |
Access to feedback object of the layer renderer (may be nullptr ) More... | |
virtual bool | forceRasterRender () const |
Returns true if the renderer must be rendered to a raster paint device (e.g. More... | |
bool | isReadyToCompose () const |
Returns whether the renderer has already drawn (at least partially) some data. More... | |
QString | layerId () const |
Gets access to the ID of the layer rendered by this class. More... | |
virtual bool | render ()=0 |
Do the rendering (based on data stored in the class). More... | |
QgsRenderContext * | renderContext () |
Returns the render context associated with the renderer. More... | |
const QgsRenderContext * | renderContext () const |
Returns the render context associated with the renderer. More... | |
virtual void | setLayerRenderingTimeHint (int time) |
Sets approximate render time (in ms) for the layer to render. More... | |
QList< QgsRenderedItemDetails * > | takeRenderedItemDetails () |
Takes the list of rendered item details from the renderer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsMapLayerRenderer | |
void | appendRenderedItemDetails (QgsRenderedItemDetails *details) |
Appends the details of a rendered item to the renderer. More... | |
Static Protected Attributes inherited from QgsMapLayerRenderer | |
static constexpr int | MAX_TIME_TO_USE_CACHED_PREVIEW_IMAGE = 3000 |
Maximum time (in ms) to allow display of a previously cached preview image while rendering layers, before switching to a progressive rendering display. More... | |
Implementation of threaded rendering for mesh layers.
Definition at line 92 of file qgsmeshlayerrenderer.h.
QgsMeshLayerRenderer::QgsMeshLayerRenderer | ( | QgsMeshLayer * | layer, |
QgsRenderContext & | context | ||
) |
Ctor.
Definition at line 40 of file qgsmeshlayerrenderer.cpp.
|
overridedefault |
|
overridevirtual |
Access to feedback object of the layer renderer (may be nullptr
)
Reimplemented from QgsMapLayerRenderer.
Definition at line 100 of file qgsmeshlayerrenderer.cpp.
|
overridevirtual |
Returns true
if the renderer must be rendered to a raster paint device (e.g.
QImage).
Some layer settings require layers to be effectively "flattened" while rendering maps, which is achieved by first rendering the layer onto a raster paint device and then compositing the resultant image onto the final map render.
E.g. if a layer contains features with transparency or alternative blending modes, and the effects of these opacity or blending modes should be restricted to only affect other features within the SAME layer, then a flattened raster based render is required.
Subclasses should return true
whenever their corresponding layer settings require the layer to always be rendered using a raster paint device.
Reimplemented from QgsMapLayerRenderer.
Definition at line 317 of file qgsmeshlayerrenderer.cpp.
|
overridevirtual |
Do the rendering (based on data stored in the class).
Returns true
if the layer was completely rendered successfully (i.e. the render was not canceled early).
Implements QgsMapLayerRenderer.
Definition at line 297 of file qgsmeshlayerrenderer.cpp.
|
protected |
Definition at line 153 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 159 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 158 of file qgsmeshlayerrenderer.h.
|
protected |
feedback class for cancellation
Definition at line 122 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 131 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 125 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 156 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 160 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 151 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 135 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 138 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 137 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 134 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 136 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 128 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 142 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 147 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 146 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 145 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 144 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 141 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 143 of file qgsmeshlayerrenderer.h.
|
protected |
Definition at line 148 of file qgsmeshlayerrenderer.h.