17#ifndef QGSMESHTRIANGULATION_H
18#define QGSMESHTRIANGULATION_H
24#include "qgis_analysis.h"
77 int addVertex(
const QgsPoint &vertex );
91 std::unique_ptr<QgsTriangulation> mTriangulation;
116 bool isActive(
int faceIndex )
const override;
122 double mZMinimum = std::numeric_limits<double>::max();
123 double mZMaximum = -std::numeric_limits<double>::max();
147 void initialize()
override;
149 int datasetCount()
const override;
152 QDomElement writeXml( QDomDocument &doc,
const QgsReadWriteContext &context )
const override;
158 std::unique_ptr<QgsMeshZValueDataset> mDataset;
176 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.
Abstract class that can be derived to implement advanced editing on mesh.
A block of integers/doubles from a mesh dataset.
Abstract class that represents a dataset group.
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.
Can be used with QgsMeshEditor::advancedEdit() to add triangle faces to a mesh created by a Delaunay ...
QgsMeshEditingDelaunayTriangulation()
Handles edit operations on a mesh layer.
Handles mesh creation with Delaunay constrained triangulation.
Convenience class that can be used to obtain a dataset group on vertices that represents the Z value ...
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.
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.
const QgsCoordinateReferenceSystem & crs
Mesh - vertices, edges and faces.