QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | Protected Attributes | List of all members
QgsMeshLayerRenderer Class Reference

Implementation of threaded rendering for mesh layers. More...

#include <qgsmeshlayerrenderer.h>

Inheritance diagram for QgsMeshLayerRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsMeshLayerRenderer (QgsMeshLayer *layer, QgsRenderContext &context)
 Ctor. More...
 
 ~QgsMeshLayerRenderer () override=default
 
QgsFeedbackfeedback () const override
 Access to feedback object of the layer renderer (may be nullptr) 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 ()=default
 
QStringList errors () const
 Returns list of errors (problems) that happened during the rendering. More...
 
QString layerId () const
 Gets access to the ID of the layer rendered by this class. More...
 
QgsRenderContextrenderContext ()
 Returns the render context associated with the renderer. More...
 

Protected Attributes

QList< QgsMapClippingRegionmClippingRegions
 
std::unique_ptr< QgsMeshLayerRendererFeedback > mFeedback
 feedback class for cancellation More...
 
QgsRectangle mLayerExtent
 
QgsMesh mNativeMesh
 
QSize mOutputSize
 
QgsMeshRendererSettings mRendererSettings
 
QgsMeshDataBlock mScalarActiveFaceFlagValues
 
double mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN()
 
double mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN()
 
QVector< double > mScalarDatasetValues
 
QgsMeshDatasetGroupMetadata::DataType mScalarDataType = QgsMeshDatasetGroupMetadata::DataOnVertices
 
QgsTriangularMesh mTriangularMesh
 
double mVectorDatasetGroupMagMaximum = std::numeric_limits<double>::quiet_NaN()
 
double mVectorDatasetGroupMagMinimum = std::numeric_limits<double>::quiet_NaN()
 
double mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN()
 
double mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN()
 
QgsMeshDataBlock mVectorDatasetValues
 
QVector< double > mVectorDatasetValuesMag
 
QgsMeshDatasetGroupMetadata::DataType mVectorDataType = QgsMeshDatasetGroupMetadata::DataOnVertices
 
- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

Implementation of threaded rendering for mesh layers.

Note
not available in Python bindings
Since
QGIS 3.2

Definition at line 92 of file qgsmeshlayerrenderer.h.

Constructor & Destructor Documentation

◆ QgsMeshLayerRenderer()

QgsMeshLayerRenderer::QgsMeshLayerRenderer ( QgsMeshLayer layer,
QgsRenderContext context 
)

Ctor.

Definition at line 44 of file qgsmeshlayerrenderer.cpp.

◆ ~QgsMeshLayerRenderer()

QgsMeshLayerRenderer::~QgsMeshLayerRenderer ( )
overridedefault

Member Function Documentation

◆ feedback()

QgsFeedback * QgsMeshLayerRenderer::feedback ( ) const
overridevirtual

Access to feedback object of the layer renderer (may be nullptr)

Since
QGIS 3.0

Reimplemented from QgsMapLayerRenderer.

Definition at line 93 of file qgsmeshlayerrenderer.cpp.

◆ render()

bool QgsMeshLayerRenderer::render ( )
overridevirtual

Do the rendering (based on data stored in the class)

Implements QgsMapLayerRenderer.

Definition at line 286 of file qgsmeshlayerrenderer.cpp.

Member Data Documentation

◆ mClippingRegions

QList< QgsMapClippingRegion > QgsMeshLayerRenderer::mClippingRegions
protected

Definition at line 150 of file qgsmeshlayerrenderer.h.

◆ mFeedback

std::unique_ptr<QgsMeshLayerRendererFeedback> QgsMeshLayerRenderer::mFeedback
protected

feedback class for cancellation

Definition at line 120 of file qgsmeshlayerrenderer.h.

◆ mLayerExtent

QgsRectangle QgsMeshLayerRenderer::mLayerExtent
protected

Definition at line 129 of file qgsmeshlayerrenderer.h.

◆ mNativeMesh

QgsMesh QgsMeshLayerRenderer::mNativeMesh
protected

Definition at line 123 of file qgsmeshlayerrenderer.h.

◆ mOutputSize

QSize QgsMeshLayerRenderer::mOutputSize
protected

Definition at line 153 of file qgsmeshlayerrenderer.h.

◆ mRendererSettings

QgsMeshRendererSettings QgsMeshLayerRenderer::mRendererSettings
protected

Definition at line 148 of file qgsmeshlayerrenderer.h.

◆ mScalarActiveFaceFlagValues

QgsMeshDataBlock QgsMeshLayerRenderer::mScalarActiveFaceFlagValues
protected

Definition at line 133 of file qgsmeshlayerrenderer.h.

◆ mScalarDatasetMaximum

double QgsMeshLayerRenderer::mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN()
protected

Definition at line 136 of file qgsmeshlayerrenderer.h.

◆ mScalarDatasetMinimum

double QgsMeshLayerRenderer::mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN()
protected

Definition at line 135 of file qgsmeshlayerrenderer.h.

◆ mScalarDatasetValues

QVector<double> QgsMeshLayerRenderer::mScalarDatasetValues
protected

Definition at line 132 of file qgsmeshlayerrenderer.h.

◆ mScalarDataType

Definition at line 134 of file qgsmeshlayerrenderer.h.

◆ mTriangularMesh

QgsTriangularMesh QgsMeshLayerRenderer::mTriangularMesh
protected

Definition at line 126 of file qgsmeshlayerrenderer.h.

◆ mVectorDatasetGroupMagMaximum

double QgsMeshLayerRenderer::mVectorDatasetGroupMagMaximum = std::numeric_limits<double>::quiet_NaN()
protected

Definition at line 144 of file qgsmeshlayerrenderer.h.

◆ mVectorDatasetGroupMagMinimum

double QgsMeshLayerRenderer::mVectorDatasetGroupMagMinimum = std::numeric_limits<double>::quiet_NaN()
protected

Definition at line 143 of file qgsmeshlayerrenderer.h.

◆ mVectorDatasetMagMaximum

double QgsMeshLayerRenderer::mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN()
protected

Definition at line 142 of file qgsmeshlayerrenderer.h.

◆ mVectorDatasetMagMinimum

double QgsMeshLayerRenderer::mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN()
protected

Definition at line 141 of file qgsmeshlayerrenderer.h.

◆ mVectorDatasetValues

QgsMeshDataBlock QgsMeshLayerRenderer::mVectorDatasetValues
protected

Definition at line 139 of file qgsmeshlayerrenderer.h.

◆ mVectorDatasetValuesMag

QVector<double> QgsMeshLayerRenderer::mVectorDatasetValuesMag
protected

Definition at line 140 of file qgsmeshlayerrenderer.h.

◆ mVectorDataType

Definition at line 145 of file qgsmeshlayerrenderer.h.


The documentation for this class was generated from the following files: