QGIS API Documentation 3.41.0-Master (57ec4277f5e)
|
Class that can do a refinement of faces of a mesh. More...
#include <qgsmeshadvancedediting.h>
Public Member Functions | |
QgsMeshEditRefineFaces () | |
QString | text () const override |
Returns a short text string describing what this advanced edit does. Default implementation return a void string. | |
Public Member Functions inherited from QgsMeshAdvancedEditing | |
QgsMeshAdvancedEditing () | |
virtual | ~QgsMeshAdvancedEditing () |
void | clear () |
Removes all data provided to the editing or created by the editing. | |
virtual bool | isFinished () const |
Returns whether the advanced edit is finished, if not, this edit has to be applied again with QgsMeshEditor::advancedEdit() until is finished returns true . | |
QString | message () const |
Returns a message that can be provided by the advanced editing when applying is done. | |
void | setInputFaces (const QList< int > faceIndexes) |
Sets the input faces indexes that will be used for the editing. | |
void | setInputVertices (const QList< int > verticesIndexes) |
Sets the input vertices indexes that will be used for the editing. | |
Public Member Functions inherited from QgsTopologicalMesh::Changes | |
QVector< QgsMeshFace > | addedFaces () const |
Returns the face that are added with this changes. | |
QVector< QgsMeshVertex > | addedVertices () const |
Returns the added vertices with this changes. | |
QList< int > | changedCoordinatesVerticesIndexes () const |
Returns the indexes of vertices that have changed coordinates. | |
bool | isEmpty () const |
Returns whether changes are empty, that there is nothing to change. | |
QList< int > | nativeFacesIndexesGeometryChanged () const |
Returns a list of the native face indexes that have a geometry changed. | |
QList< QgsPointXY > | newVerticesXYValues () const |
Returns the new (X,Y) values of vertices that have changed their coordinates. | |
QList< double > | newVerticesZValues () const |
Returns the new Z values of vertices that have changed their coordinates. | |
QList< QgsPointXY > | oldVerticesXYValues () const |
Returns the old (X,Y) values of vertices that have changed their coordinates. | |
QList< int > | removedFaceIndexes () const |
Returns the indexes of the faces that are removed with this changes. | |
QVector< QgsMeshFace > | removedFaces () const |
Returns the faces that are removed with this changes. | |
QList< int > | verticesToRemoveIndexes () const |
Returns the indexes of vertices to remove. | |
Friends | |
class | TestQgsMeshEditor |
Class that can do a refinement of faces of a mesh.
This refinement is operated only on faces with 3 or 4 vertices (triangles or quads) by adding a vertex on the middle of each refined face. For quad faces, a vertex is added on the centroid of the original face.
New vertices Z value are interpolated between original vertices.
Original triangle faces are replaced by four triangles, and original quad faces are replaced by four quads. Neighboring faces are triangulated to take account of the new vertex in the shared edge.
Definition at line 97 of file qgsmeshadvancedediting.h.
|
default |
|
overridevirtual |
Returns a short text string describing what this advanced edit does. Default implementation return a void string.
Reimplemented from QgsMeshAdvancedEditing.
Definition at line 608 of file qgsmeshadvancedediting.cpp.
|
friend |
Definition at line 136 of file qgsmeshadvancedediting.h.