QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSMESHLAYERRENDERER_H
19 #define QGSMESHLAYERRENDERER_H
55 struct CORE_NO_EXPORT QgsMeshLayerRendererCache
57 int mDatasetGroupsCount = 0;
61 QVector<double> mScalarDatasetValues;
64 double mScalarDatasetMinimum = std::numeric_limits<double>::quiet_NaN();
65 double mScalarDatasetMaximum = std::numeric_limits<double>::quiet_NaN();
67 std::unique_ptr<QgsMesh3dAveragingMethod> mScalarAveragingMethod;
72 QVector<double> mVectorDatasetValuesMag;
73 double mVectorDatasetMagMinimum = std::numeric_limits<double>::quiet_NaN();
74 double mVectorDatasetMagMaximum = std::numeric_limits<double>::quiet_NaN();
75 double mVectorDatasetGroupMagMinimum = std::numeric_limits<double>::quiet_NaN();
76 double mVectorDatasetGroupMagMaximum = std::numeric_limits<double>::quiet_NaN();
78 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;
117 bool mIsEditable =
false;
121 std::unique_ptr<QgsMeshLayerRendererFeedback>
mFeedback;
158 double mLayerOpacity = 1.0;
162 #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
bool forceRasterRender() const override
Returns true if the renderer must be rendered to a raster paint device (e.g.
QgsMeshDatasetIndex is index that identifies the dataset group (e.g. wind speed) and a dataset in thi...
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