QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 null) 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)
 
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...
 

Protected Attributes

QgsRenderContextmContext
 
std::unique_ptr< QgsMeshLayerRendererFeedback > mFeedback
 feedback class for cancellation More...
 
QgsMesh mNativeMesh
 
QSize mOutputSize
 
QgsMeshRendererSettings mRendererSettings
 
QVector< bool > mScalarActiveFaceFlagValues
 
bool mScalarDataOnVertices = true
 
double mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN()
 
double mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN()
 
QVector< double > mScalarDatasetValues
 
QgsTriangularMesh mTriangularMesh
 
bool mVectorDataOnVertices = true
 
double mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN()
 
double mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN()
 
QVector< double > mVectorDatasetValuesMag
 
QVector< double > mVectorDatasetValuesX
 
QVector< double > mVectorDatasetValuesY
 
- 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 83 of file qgsmeshlayerrenderer.h.

Constructor & Destructor Documentation

QgsMeshLayerRenderer::QgsMeshLayerRenderer ( QgsMeshLayer layer,
QgsRenderContext context 
)

Ctor.

Definition at line 39 of file qgsmeshlayerrenderer.cpp.

QgsMeshLayerRenderer::~QgsMeshLayerRenderer ( )
overridedefault

Member Function Documentation

QgsFeedback * QgsMeshLayerRenderer::feedback ( ) const
overridevirtual

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

Since
QGIS 3.0

Reimplemented from QgsMapLayerRenderer.

Definition at line 60 of file qgsmeshlayerrenderer.cpp.

bool QgsMeshLayerRenderer::render ( )
overridevirtual

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

Implements QgsMapLayerRenderer.

Definition at line 203 of file qgsmeshlayerrenderer.cpp.

Member Data Documentation

QgsRenderContext& QgsMeshLayerRenderer::mContext
protected

Definition at line 127 of file qgsmeshlayerrenderer.h.

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

feedback class for cancellation

Definition at line 103 of file qgsmeshlayerrenderer.h.

QgsMesh QgsMeshLayerRenderer::mNativeMesh
protected

Definition at line 106 of file qgsmeshlayerrenderer.h.

QSize QgsMeshLayerRenderer::mOutputSize
protected

Definition at line 133 of file qgsmeshlayerrenderer.h.

QgsMeshRendererSettings QgsMeshLayerRenderer::mRendererSettings
protected

Definition at line 130 of file qgsmeshlayerrenderer.h.

QVector<bool> QgsMeshLayerRenderer::mScalarActiveFaceFlagValues
protected

Definition at line 113 of file qgsmeshlayerrenderer.h.

bool QgsMeshLayerRenderer::mScalarDataOnVertices = true
protected

Definition at line 114 of file qgsmeshlayerrenderer.h.

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

Definition at line 116 of file qgsmeshlayerrenderer.h.

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

Definition at line 115 of file qgsmeshlayerrenderer.h.

QVector<double> QgsMeshLayerRenderer::mScalarDatasetValues
protected

Definition at line 112 of file qgsmeshlayerrenderer.h.

QgsTriangularMesh QgsMeshLayerRenderer::mTriangularMesh
protected

Definition at line 109 of file qgsmeshlayerrenderer.h.

bool QgsMeshLayerRenderer::mVectorDataOnVertices = true
protected

Definition at line 124 of file qgsmeshlayerrenderer.h.

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

Definition at line 123 of file qgsmeshlayerrenderer.h.

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

Definition at line 122 of file qgsmeshlayerrenderer.h.

QVector<double> QgsMeshLayerRenderer::mVectorDatasetValuesMag
protected

Definition at line 121 of file qgsmeshlayerrenderer.h.

QVector<double> QgsMeshLayerRenderer::mVectorDatasetValuesX
protected

Definition at line 119 of file qgsmeshlayerrenderer.h.

QVector<double> QgsMeshLayerRenderer::mVectorDatasetValuesY
protected

Definition at line 120 of file qgsmeshlayerrenderer.h.


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