QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsVectorLayerUndoCommandChangeGeometry Class Reference

Undo command for modifying the geometry of a feature from a vector layer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandChangeGeometry:

Public Member Functions

 QgsVectorLayerUndoCommandChangeGeometry (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, const QgsGeometry &newGeom)
 Constructor for QgsVectorLayerUndoCommandChangeGeometry.
int id () const override
bool mergeWith (const QUndoCommand *other) override
void redo () override
void undo () override
Public Member Functions inherited from QgsVectorLayerUndoCommand
 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
 Constructor for QgsVectorLayerUndoCommand.
int id () const override
QgsVectorLayerlayer ()
 Returns the layer associated with the undo command.
bool mergeWith (const QUndoCommand *) override

Additional Inherited Members

Protected Attributes inherited from QgsVectorLayerUndoCommand
QgsVectorLayerEditBuffermBuffer = nullptr
 Associated edit buffer.

Detailed Description

Undo command for modifying the geometry of a feature from a vector layer.

Definition at line 119 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandChangeGeometry()

QgsVectorLayerUndoCommandChangeGeometry::QgsVectorLayerUndoCommandChangeGeometry ( QgsVectorLayerEditBuffer * buffer,
QgsFeatureId fid,
const QgsGeometry & newGeom )

Constructor for QgsVectorLayerUndoCommandChangeGeometry.

Parameters
bufferassociated edit buffer
fidfeature ID of feature to modify geometry of
newGeomnew geometry for feature

Definition at line 106 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ id()

int QgsVectorLayerUndoCommandChangeGeometry::id ( ) const
inlineoverride

Definition at line 133 of file qgsvectorlayerundocommand.h.

◆ mergeWith()

bool QgsVectorLayerUndoCommandChangeGeometry::mergeWith ( const QUndoCommand * other)
override

Definition at line 125 of file qgsvectorlayerundocommand.cpp.

◆ redo()

void QgsVectorLayerUndoCommandChangeGeometry::redo ( )
override

Definition at line 177 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandChangeGeometry::undo ( )
override

Definition at line 143 of file qgsvectorlayerundocommand.cpp.


The documentation for this class was generated from the following files: