QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Abstract class that can be derived to implement advanced editing on mesh. More...
#include <qgsmeshadvancedediting.h>
Public Member Functions | |
QgsMeshAdvancedEditing () | |
Constructor. More... | |
virtual | ~QgsMeshAdvancedEditing () |
Destructor. More... | |
void | clear () |
Removes all data provided to the editing or created by the editing. More... | |
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 . More... | |
QString | message () const |
Returns a message that can be provided by the advanced editing when applying is done. More... | |
void | setInputFaces (const QList< int > faceIndexes) |
Sets the input faces indexes that will be used for the editing. More... | |
void | setInputVertices (const QList< int > verticesIndexes) |
Sets the input vertices indexes that will be used for the editing. More... | |
virtual QString | text () const |
Returns a short text string describing what this advanced edit does. Default implementation return a void string. More... | |
Public Member Functions inherited from QgsTopologicalMesh::Changes | |
QVector< QgsMeshFace > | addedFaces () const |
Returns the face that are added with this changes. More... | |
QVector< QgsMeshVertex > | addedVertices () const |
Returns the added vertices with this changes. More... | |
QList< int > | changedCoordinatesVerticesIndexes () const |
Returns the indexes of vertices that have changed coordinates. More... | |
bool | isEmpty () const |
Returns whether changes are empty, that there is nothing to change. More... | |
QList< int > | nativeFacesIndexesGeometryChanged () const |
Returns a list of the native face indexes that have a geometry changed. More... | |
QList< QgsPointXY > | newVerticesXYValues () const |
Returns the new (X,Y) values of vertices that have changed their coordinates. More... | |
QList< double > | newVerticesZValues () const |
Returns the new Z values of vertices that have changed their coordinates. More... | |
QList< QgsPointXY > | oldVerticesXYValues () const |
Returns the old (X,Y) values of vertices that have changed their coordinates. More... | |
QList< int > | removedFaceIndexes () const |
Returns the indexes of the faces that are removed with this changes. More... | |
QVector< QgsMeshFace > | removedFaces () const |
Returns the faces that are removed with this changes. More... | |
QList< int > | verticesToRemoveIndexes () const |
Returns the indexes of vertices to remove. More... | |
Protected Member Functions | |
virtual QgsTopologicalMesh::Changes | apply (QgsMeshEditor *meshEditor)=0 |
Apply a change to mesh Editor. More... | |
Protected Member Functions inherited from QgsTopologicalMesh::Changes | |
void | clearChanges () |
Clears all changes. More... | |
Protected Attributes | |
QList< int > | mInputFaces |
QList< int > | mInputVertices |
bool | mIsFinished = false |
QString | mMessage |
Protected Attributes inherited from QgsTopologicalMesh::Changes | |
int | mAddedFacesFirstIndex = 0 |
QList< int > | mChangeCoordinateVerticesIndexes |
QList< int > | mFaceIndexesToRemove |
QVector< FaceNeighbors > | mFacesNeighborhoodToAdd |
QVector< FaceNeighbors > | mFacesNeighborhoodToRemove |
QVector< QgsMeshFace > | mFacesToAdd |
QVector< QgsMeshFace > | mFacesToRemove |
QList< int > | mNativeFacesIndexesGeometryChanged |
QList< std::array< int, 4 > > | mNeighborhoodChanges |
QList< QgsPointXY > | mNewXYValues |
QList< double > | mNewZValues |
QList< QgsPointXY > | mOldXYValues |
QList< double > | mOldZValues |
QList< QgsMeshVertex > | mRemovedVertices |
QVector< int > | mVertexToFaceToAdd |
QVector< QgsMeshVertex > | mVerticesToAdd |
QList< std::array< int, 3 > > | mVerticesToFaceChanges |
QList< int > | mVerticesToFaceRemoved |
QList< int > | mVerticesToRemoveIndexes |
Friends | |
class | QgsMeshEditor |
Abstract class that can be derived to implement advanced editing on mesh.
To apply the advanced editing, a pointer to an instance of a derived class is passed in the method QgsMeshEditor::advancedEdit().
Definition at line 38 of file qgsmeshadvancedediting.h.
|
default |
Constructor.
|
virtualdefault |
Destructor.
|
protectedpure virtual |
Apply a change to mesh Editor.
This method is called by the QgsMeshEditor to apply the editing on the topological mesh
The method has to be implemented in the derived class to provide the changes of the advanced editing
void QgsMeshAdvancedEditing::clear | ( | ) |
Removes all data provided to the editing or created by the editing.
Definition at line 46 of file qgsmeshadvancedediting.cpp.
|
virtual |
Returns whether the advanced edit is finished, if not, this edit has to be applied again with QgsMeshEditor::advancedEdit() until is finished returns true
.
Reimplemented in QgsMeshEditForceByPolylines.
Definition at line 55 of file qgsmeshadvancedediting.cpp.
QString QgsMeshAdvancedEditing::message | ( | ) | const |
Returns a message that can be provided by the advanced editing when applying is done.
Definition at line 41 of file qgsmeshadvancedediting.cpp.
void QgsMeshAdvancedEditing::setInputFaces | ( | const QList< int > | faceIndexes | ) |
Sets the input faces indexes that will be used for the editing.
Definition at line 36 of file qgsmeshadvancedediting.cpp.
void QgsMeshAdvancedEditing::setInputVertices | ( | const QList< int > | verticesIndexes | ) |
Sets the input vertices indexes that will be used for the editing.
Definition at line 31 of file qgsmeshadvancedediting.cpp.
|
virtual |
Returns a short text string describing what this advanced edit does. Default implementation return a void string.
Reimplemented in QgsMeshEditForceByPolylines, QgsMeshTransformVerticesByExpression, QgsMeshEditRefineFaces, and QgsMeshEditingDelaunayTriangulation.
Definition at line 60 of file qgsmeshadvancedediting.cpp.
|
friend |
Definition at line 81 of file qgsmeshadvancedediting.h.
|
protected |
Definition at line 70 of file qgsmeshadvancedediting.h.
|
protected |
Definition at line 69 of file qgsmeshadvancedediting.h.
|
protected |
Definition at line 72 of file qgsmeshadvancedediting.h.
|
protected |
Definition at line 71 of file qgsmeshadvancedediting.h.