18#ifndef QGSMESHLAYERUTILS_H
19#define QGSMESHLAYERUTILS_H
49class CORE_EXPORT QgsMeshLayerUtils
101 static QVector<double> calculateMagnitudes(
const QgsMeshDataBlock &block );
113 static void boundingBoxToScreenRectangle(
114 const QgsMapToPixel &mtp,
const QSize &outputSize,
const QgsRectangle &bbox,
int &leftLim,
int &rightLim,
int &bottomLim,
int &topLim,
double devicePixelRatio = 1.0
140 static double interpolateFromVerticesData(
double fraction,
double val1,
double val2 );
170 static double interpolateZForPoint(
const QgsTriangularMesh &mesh,
double x,
double y );
216 static QVector<double> interpolateFromFacesData(
232 static QVector<double> interpolateFromFacesData(
241 static QVector<double> resampleFromVerticesToFaces(
255 static QVector<double> calculateMagnitudeOnVertices(
274 static QVector<double> calculateMagnitudeOnVertices(
300 static QString formatTime(
double hours,
const QDateTime &referenceTime,
const QgsMeshTimeSettings &settings );
310 static QVector<QVector3D> calculateNormals(
const QgsTriangularMesh &triangularMesh,
const QVector<double> &verticalMagnitude,
bool isRelative );
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.