18#ifndef QGSMESHLAYERUTILS_H
19#define QGSMESHLAYERUTILS_H
49class CORE_EXPORT QgsMeshLayerUtils
99 static QVector<QgsVector> griddedVectorValues(
112 static QVector<double> calculateMagnitudes(
const QgsMeshDataBlock &block );
124 static void boundingBoxToScreenRectangle(
126 const QSize &outputSize,
132 double devicePixelRatio = 1.0 );
142 double devicePixelRatio = 1.0
153 static bool calculateBarycentricCoordinates(
169 static double interpolateFromVerticesData(
171 double val1,
double val2
195 static double interpolateFromVerticesData(
197 double val1,
double val2,
double val3,
const QgsPointXY &pt
207 static double interpolateZForPoint(
const QgsTriangularMesh &mesh,
double x,
double y );
222 static QgsVector interpolateVectorFromVerticesData(
236 static double interpolateFromFacesData(
251 static QgsVector interpolateVectorFromFacesData(
260 static QVector<double> interpolateFromFacesData(
261 QVector<double> valuesOnFaces,
273 static QVector<double> interpolateFromFacesData(
274 const QVector<double> &valuesOnFaces,
285 static QVector<double> interpolateFromFacesData(
286 const QVector<double> &valuesOnFaces,
297 static QVector<double> resampleFromVerticesToFaces(
298 const QVector<double> valuesOnVertices,
315 static QVector<double> calculateMagnitudeOnVertices(
333 static QVector<double> calculateMagnitudeOnVertices(
359 static QString formatTime(
double hours,
const QDateTime &referenceTime,
const QgsMeshTimeSettings &settings );
369 static QVector<QVector3D> calculateNormals(
371 const QVector<double> &verticalMagnitude,
Perform transforms between map coordinates and device coordinates.
Abstract class for interpolating 3d stacked mesh data to 2d data.
A block of integers/doubles from a mesh dataset.
An index that identifies the dataset group (e.g.
Represents a single mesh dataset value.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
DataResamplingMethod
Resampling of value from dataset.
@ NeighbourAverage
Does a simple average of values defined for all surrounding faces/vertices.
Represents a mesh time settings for mesh datasets.
A rectangle specified with double values.
A triangular/derived mesh with vertices in map coordinates.
Represent a 2-dimensional vector.
Mesh - vertices, edges and faces.