17#ifndef QGSMESHTRIANGULATION_H
18#define QGSMESHTRIANGULATION_H
20#include "qgis_analysis.h"
89 std::unique_ptr<QgsTriangulation> mTriangulation;
114 bool isActive(
int faceIndex )
const override;
120 double mZMinimum = std::numeric_limits<double>::max();
121 double mZMaximum = -std::numeric_limits<double>::max();
151 QDomElement writeXml( QDomDocument &doc,
const QgsReadWriteContext &context )
const override;
157 std::unique_ptr<QgsMeshZValueDataset> mDataset;
175 QString
text()
const override;
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 unique ID, geometry and a list of field...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
friend class QgsMeshEditor
A block of integers/doubles from a mesh dataset.
QgsMeshDatasetGroup()=default
Type
Type of the dataset group.
@ Virtual
Virtual Dataset group defined by a formula.
Represents a single mesh dataset value.
Abstract class that represents a mesh dataset.
QgsMeshEditingDelaunayTriangulation()
QString text() const override
Returns a short text string describing what this advanced edit does. Default implementation return a ...
bool addBreakLines(QgsFeatureIterator &lineFeatureIterator, int valueAttribute, const QgsCoordinateTransform &transformContext, QgsFeedback *feedback=nullptr, long featureCount=1)
Adds break lines from a vector layer, return true if successful.
~QgsMeshTriangulation() override
int addVertex(const QgsPoint &vertex)
Adds a new vertex in the triangulation and returns the index of the new vertex.
void setCrs(const QgsCoordinateReferenceSystem &crs)
Sets the coordinate reference system used for the triangulation.
bool addVertices(QgsFeatureIterator &vertexFeatureIterator, int valueAttribute, const QgsCoordinateTransform &transform, QgsFeedback *feedback=nullptr, long featureCount=1)
Adds vertices to the triangulation from a feature iterator, return true if successful.
QgsMesh triangulatedMesh(QgsFeedback *feedback=nullptr) const
Returns the triangulated mesh.
Convenience class that can be used to obtain a dataset group on vertices that represents the Z value ...
int datasetCount() const override
Returns the count of datasets in the group.
void initialize() override
Initialize the dataset group.
QgsMeshDataset * dataset(int index) const override
Returns the dataset with index.
QgsMeshDatasetGroup::Type type() const override
Returns the type of dataset group.
QgsMeshDatasetMetadata datasetMetadata(int datasetIndex) const override
Returns the metadata of the dataset with index datasetIndex.
QgsMeshZValueDatasetGroup(const QString &datasetGroupName, const QgsMesh &mesh)
Constructor.
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.
Point geometry type, with support for z-dimension and m-values.
A container for the context for various read/write operations on objects.
Contains topological differences between two states of a topological mesh, only accessible from the Q...
Interface for Triangulation classes.
Represents a vector layer which manages a vector based dataset.
Mesh - vertices, edges and faces.