17 #ifndef QGSMESHTRIANGULATION_H
18 #define QGSMESHTRIANGULATION_H
23 #include "qgis_analysis.h"
87 std::unique_ptr<QgsTriangulation> mTriangulation;
113 bool isActive(
int faceIndex )
const override;
119 double mZMinimum = std::numeric_limits<double>::max();
120 double mZMaximum = -std::numeric_limits<double>::max();
145 void initialize()
override;
147 int datasetCount()
const override;
150 QDomElement writeXml( QDomDocument &doc,
const QgsReadWriteContext &context )
const override;
156 std::unique_ptr<QgsMeshZValueDataset> mDataset;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Wrapper for iterator of features from vector data provider or vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
Abstract class that represents a dataset group.
Type
Type of the dataset group.
@ Virtual
Temporary dataset group in memory.
QgsMeshDatasetValue represents single dataset value.
Abstract class that represents a dataset.
Class that handles mesh creation with Delaunay constrained triangulation.
~QgsMeshTriangulation()
Destructor.
Convenient class that can be used to obtain a datasetgroup on vertices that represents the Z value of...
QgsMeshDatasetGroup::Type type() const override
Returns the type of dataset group.
Convenient class that can be used to obtain a dataset that represents the Z values of mesh vertices.
QgsMeshDataBlock areFacesActive(int faceIndex, int count) const override
Returns whether faces are active.
QgsMeshDatasetMetadata metadata() const override
Returns the metadata of the dataset.
QgsMeshZValueDataset(const QgsMesh &mesh)
Constructor with the mesh.
bool isActive(int faceIndex) const override
Returns whether the face is active.
int valuesCount() const override
Returns the values count.
QgsMeshDatasetValue datasetValue(int valueIndex) const override
Returns the value with index valueIndex.
QgsMeshDataBlock datasetValues(bool isScalar, int valueIndex, int count) const override
Returns count values from valueIndex.
The class is used as a container of context for various read/write operations on other objects.
Interface for Triangulation classes.
Represents a vector layer which manages a vector based data sets.
const QgsCoordinateReferenceSystem & crs
Mesh - vertices, edges and faces.