QGIS API Documentation  2.99.0-Master (19b062c)
Public Member Functions | List of all members
QgsVectorLayerUndoCommandChangeGeometry Class Reference

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

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandChangeGeometry:
Inheritance graph
[legend]

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 121 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 108 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ id()

int QgsVectorLayerUndoCommandChangeGeometry::id ( ) const
overridevirtual

Reimplemented from QgsVectorLayerUndoCommand.

Definition at line 127 of file qgsvectorlayerundocommand.cpp.

◆ mergeWith()

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

Reimplemented from QgsVectorLayerUndoCommand.

Definition at line 132 of file qgsvectorlayerundocommand.cpp.

◆ redo()

void QgsVectorLayerUndoCommandChangeGeometry::redo ( )
overridevirtual

Definition at line 184 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandChangeGeometry::undo ( )
overridevirtual

Definition at line 150 of file qgsvectorlayerundocommand.cpp.


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