18 #ifndef QGSMESHLAYERUTILS_H
19 #define QGSMESHLAYERUTILS_H
23 #include "qgis_core.h"
48 class CORE_EXPORT QgsMeshLayerUtils
98 static QVector<QgsVector> griddedVectorValues(
111 static QVector<double> calculateMagnitudes(
const QgsMeshDataBlock &block );
123 static void boundingBoxToScreenRectangle(
125 const QSize &outputSize,
148 static double interpolateFromVerticesData(
150 double val1,
double val2
174 static double interpolateFromVerticesData(
176 double val1,
double val2,
double val3,
const QgsPointXY &pt
186 static double interpolateZForPoint(
const QgsTriangularMesh &mesh,
double x,
double y );
201 static QgsVector interpolateVectorFromVerticesData(
215 static double interpolateFromFacesData(
230 static QgsVector interpolateVectorFromFacesData(
239 static QVector<double> interpolateFromFacesData(
240 QVector<double> valuesOnFaces,
252 static QVector<double> interpolateFromFacesData(
253 const QVector<double> &valuesOnFaces,
264 static QVector<double> interpolateFromFacesData(
265 const QVector<double> &valuesOnFaces,
276 static QVector<double> resampleFromVerticesToFaces(
277 const QVector<double> valuesOnVertices,
294 static QVector<double> calculateMagnitudeOnVertices(
312 static QVector<double> calculateMagnitudeOnVertices(
338 static QString formatTime(
double hours,
const QDateTime &referenceTime,
const QgsMeshTimeSettings &settings );
348 static QVector<QVector3D> calculateNormals(
350 const QVector<double> &verticalMagnitude,
356 #endif // QGSMESHLAYERUTILS_H