18#ifndef QGSMESHLAYERUTILS_H
19#define QGSMESHLAYERUTILS_H
48class CORE_EXPORT QgsMeshLayerUtils
98 static QVector<QgsVector> griddedVectorValues(
111 static QVector<double> calculateMagnitudes(
const QgsMeshDataBlock &block );
123 static void boundingBoxToScreenRectangle(
125 const QSize &outputSize,
131 double devicePixelRatio = 1.0 );
141 double devicePixelRatio = 1.0
152 static bool calculateBarycentricCoordinates(
168 static double interpolateFromVerticesData(
170 double val1,
double val2
194 static double interpolateFromVerticesData(
196 double val1,
double val2,
double val3,
const QgsPointXY &pt
206 static double interpolateZForPoint(
const QgsTriangularMesh &mesh,
double x,
double y );
221 static QgsVector interpolateVectorFromVerticesData(
235 static double interpolateFromFacesData(
250 static QgsVector interpolateVectorFromFacesData(
259 static QVector<double> interpolateFromFacesData(
260 QVector<double> valuesOnFaces,
272 static QVector<double> interpolateFromFacesData(
273 const QVector<double> &valuesOnFaces,
284 static QVector<double> interpolateFromFacesData(
285 const QVector<double> &valuesOnFaces,
296 static QVector<double> resampleFromVerticesToFaces(
297 const QVector<double> valuesOnVertices,
314 static QVector<double> calculateMagnitudeOnVertices(
332 static QVector<double> calculateMagnitudeOnVertices(
358 static QString formatTime(
double hours,
const QDateTime &referenceTime,
const QgsMeshTimeSettings &settings );
368 static QVector<QVector3D> calculateNormals(
370 const QVector<double> &verticalMagnitude,
Perform transforms between map coordinates and device coordinates.
Abstract class to interpolate 3d stacked mesh data to 2d data.
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
QgsMeshDatasetValue represents single 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 class to represent a 2D point.
A rectangle specified with double values.
Triangular/Derived Mesh is mesh with vertices in map coordinates.
A class to represent a vector.
Mesh - vertices, edges and faces.