QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Class that handles mesh creation with Delaunay constrained triangulation. More...
#include <qgsmeshtriangulation.h>
Public Member Functions | |
QgsMeshTriangulation () | |
~QgsMeshTriangulation () | |
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. | |
int | addVertex (const QgsPoint &vertex) |
Adds a new vertex in the triangulation and returns the index of the new vertex. | |
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. | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the coordinate reference system used for the triangulation. | |
QgsMesh | triangulatedMesh (QgsFeedback *feedback=nullptr) const |
Returns the triangulated mesh. | |
Class that handles mesh creation with Delaunay constrained triangulation.
Definition at line 42 of file qgsmeshtriangulation.h.
QgsMeshTriangulation::QgsMeshTriangulation | ( | ) |
Definition at line 31 of file qgsmeshtriangulation.cpp.
|
default |
bool QgsMeshTriangulation::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.
lineFeatureIterator | the feature iterator of break lines to insert |
valueAttribute | the index of the attribute that represents the value of vertices, if -1 uses Z coordinate of vertices |
transformContext | the coordinates transform context used to transform coordinates |
feedback | feedback argument may be specified to allow cancellation and progress reports |
featureCount | the count of feature to allow progress report of the feedback |
Definition at line 64 of file qgsmeshtriangulation.cpp.
int QgsMeshTriangulation::addVertex | ( | const QgsPoint & | vertex | ) |
Adds a new vertex in the triangulation and returns the index of the new vertex.
Definition at line 100 of file qgsmeshtriangulation.cpp.
bool QgsMeshTriangulation::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.
vertexFeatureIterator | the feature iterator of vertices to insert |
valueAttribute | the index of the attribute that represents the value of vertices, if -1 uses Z coordinate of vertices |
transform | the coordinates transform used to transform coordinates |
feedback | feedback argument may be specified to allow cancellation and progress reports |
featureCount | the count of feature to allow progress report of the feedback |
Definition at line 40 of file qgsmeshtriangulation.cpp.
void QgsMeshTriangulation::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the coordinate reference system used for the triangulation.
Definition at line 110 of file qgsmeshtriangulation.cpp.
QgsMesh QgsMeshTriangulation::triangulatedMesh | ( | QgsFeedback * | feedback = nullptr | ) | const |
Returns the triangulated mesh.
Definition at line 105 of file qgsmeshtriangulation.cpp.