18 #ifndef QGSMESHLAYERRENDERER_H 19 #define QGSMESHLAYERRENDERER_H 53 struct CORE_NO_EXPORT QgsMeshLayerRendererCache
55 int mDatasetGroupsCount = 0;
59 QVector<double> mScalarDatasetValues;
61 bool mScalarDataOnVertices =
true;
62 double mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN();
63 double mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN();
68 QVector<double> mVectorDatasetValuesMag;
69 double mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN();
70 double mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN();
71 double mVectorDatasetGroupMagMinimum = std::numeric_limits<double>::quiet_NaN();
72 double mVectorDatasetGroupMagMaximum = std::numeric_limits<double>::quiet_NaN();
73 bool mVectorDataOnVertices =
true;
92 bool render()
override;
97 void renderScalarDataset();
98 void renderVectorDataset();
101 void calculateOutputSize();
105 std::unique_ptr<QgsMeshLayerRendererFeedback>
mFeedback;
116 bool mScalarDataOnVertices =
true;
117 double mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN();
118 double mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN();
123 double mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN();
124 double mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN();
125 double mVectorDatasetGroupMagMinimum = std::numeric_limits<double>::quiet_NaN();
126 double mVectorDatasetGroupMagMaximum = std::numeric_limits<double>::quiet_NaN();
127 bool mVectorDataOnVertices =
true;
140 #endif // QGSMESHLAYERRENDERER_H Triangular/Derived Mesh is mesh with vertices in map coordinates.
QgsMeshRendererSettings mRendererSettings
Represents a mesh renderer settings for mesh object.
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e...
QVector< double > mScalarDatasetValues
Implementation of threaded rendering for mesh layers.
QgsMeshDataBlock mVectorDatasetValues
QVector< double > mVectorDatasetValuesMag
QgsTriangularMesh mTriangularMesh
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Represents all mesh renderer settings.
std::unique_ptr< QgsMeshLayerRendererFeedback > mFeedback
feedback class for cancellation
QgsRenderContext & mContext
Contains information about the context of a rendering operation.
Mesh - vertices and faces.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
Base class for utility classes that encapsulate information necessary for rendering of map layers...
Represents a mesh layer supporting display of data on structured or unstructured meshes.
QgsMeshDataBlock mScalarActiveFaceFlagValues
Feedback object tailored for raster block reading.