QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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, QgsGeometry *newGeom)
 Constructor for QgsVectorLayerUndoCommandChangeGeometry. More...
 
 ~QgsVectorLayerUndoCommandChangeGeometry ()
 
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...
 
QgsGeometryCachecache ()
 
QgsVectorLayerlayer ()
 Returns the layer associated with the undo command. More...
 
- Public Member Functions inherited from QUndoCommand
 QUndoCommand (QUndoCommand *parent)
 
 QUndoCommand (const QString &text, QUndoCommand *parent)
 
virtual ~QUndoCommand ()
 
QString actionText () const
 
const QUndoCommandchild (int index) const
 
int childCount () const
 
void setText (const QString &text)
 
QString text () const
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 115 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandChangeGeometry()

QgsVectorLayerUndoCommandChangeGeometry::QgsVectorLayerUndoCommandChangeGeometry ( QgsVectorLayerEditBuffer buffer,
QgsFeatureId  fid,
QgsGeometry newGeom 
)

Constructor for QgsVectorLayerUndoCommandChangeGeometry.

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

Definition at line 114 of file qgsvectorlayerundocommand.cpp.

◆ ~QgsVectorLayerUndoCommandChangeGeometry()

QgsVectorLayerUndoCommandChangeGeometry::~QgsVectorLayerUndoCommandChangeGeometry ( )

Definition at line 159 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ id()

int QgsVectorLayerUndoCommandChangeGeometry::id ( ) const
overridevirtual

Reimplemented from QgsVectorLayerUndoCommand.

Definition at line 135 of file qgsvectorlayerundocommand.cpp.

◆ mergeWith()

bool QgsVectorLayerUndoCommandChangeGeometry::mergeWith ( const QUndoCommand other)
overridevirtual

Reimplemented from QgsVectorLayerUndoCommand.

Definition at line 140 of file qgsvectorlayerundocommand.cpp.

◆ redo()

void QgsVectorLayerUndoCommandChangeGeometry::redo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 202 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandChangeGeometry::undo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 165 of file qgsvectorlayerundocommand.cpp.


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