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
192 static QgsVector interpolateVectorFromVerticesData(
206 static double interpolateFromFacesData(
221 static QgsVector interpolateVectorFromFacesData(
230 static QVector<double> interpolateFromFacesData(
231 QVector<double> valuesOnFaces,
243 static QVector<double> resampleFromVerticesToFaces(
244 const QVector<double> valuesOnVertices,
261 static QVector<double> calculateMagnitudeOnVertices(
284 static QString formatTime(
double hours,
const QDateTime &referenceTime,
const QgsMeshTimeSettings &settings );
294 static QVector<QVector3D> calculateNormals(
296 const QVector<double> &verticalMagnitude,
302 #endif // QGSMESHLAYERUTILS_H