QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSMESHLAYERRENDERER_H
19 #define QGSMESHLAYERRENDERER_H
56 struct CORE_NO_EXPORT QgsMeshLayerRendererCache
58 int mDatasetGroupsCount = 0;
62 QVector<double> mScalarDatasetValues;
65 double mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN();
66 double mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN();
68 std::unique_ptr<QgsMesh3dAveragingMethod> mScalarAveragingMethod;
73 QVector<double> mVectorDatasetValuesMag;
74 double mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN();
75 double mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN();
76 double mVectorDatasetGroupMagMinimum = std::numeric_limits<double>::quiet_NaN();
77 double mVectorDatasetGroupMagMaximum = std::numeric_limits<double>::quiet_NaN();
79 std::unique_ptr<QgsMesh3dAveragingMethod> mVectorAveragingMethod;
104 void renderFaceMesh(
const QgsMeshRendererMeshSettings &settings,
const QVector<QgsMeshFace> &faces,
const QList<int> &facesInExtent );
105 void renderScalarDataset();
109 void renderVectorDataset();
113 void calculateOutputSize();
115 bool mIsMeshSimplificationActive =
false;
120 std::unique_ptr<QgsMeshLayerRendererFeedback>
mFeedback;
157 #endif // QGSMESHLAYERRENDERER_H
QgsMeshDatasetGroupMetadata::DataType mScalarDataType
QgsTriangularMesh mTriangularMesh
QVector< double > mScalarDatasetValues
QgsMeshRendererSettings mRendererSettings
double mVectorDatasetGroupMagMinimum
Represents all mesh renderer settings.
double mScalarDatasetMaximum
Represents a mesh renderer settings for mesh object.
QgsMeshDatasetGroupMetadata::DataType mVectorDataType
QgsFeedback * feedback() const override
Access to feedback object of the layer renderer (may be nullptr)
QgsRectangle mLayerExtent
~QgsMeshLayerRenderer() override=default
bool render() override
Do the rendering (based on data stored in the class)
Contains information about the context of a rendering operation.
Mesh - vertices, edges and faces.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
A rectangle specified with double values.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
QVector< double > mVectorDatasetValuesMag
std::unique_ptr< QgsMeshLayerRendererFeedback > mFeedback
feedback class for cancellation
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
QgsMeshLayerRenderer(QgsMeshLayer *layer, QgsRenderContext &context)
Ctor.
QgsMeshDataBlock mVectorDatasetValues
@ None
Does not use resampling.
double mVectorDatasetMagMaximum
DataResamplingMethod
Resampling of value from dataset.
double mVectorDatasetGroupMagMaximum
A class to represent a 2D point.
Represents a mesh renderer settings for scalar datasets.
QgsMeshDataBlock mScalarActiveFaceFlagValues
Feedback object tailored for raster block reading.
Implementation of threaded rendering for mesh layers.
QList< QgsMapClippingRegion > mClippingRegions
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
Triangular/Derived Mesh is mesh with vertices in map coordinates.
double mScalarDatasetMinimum
double mVectorDatasetMagMinimum