QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsVectorLayerUndoCommandAddFeature Class Reference

Undo command for adding a feature to a vector layer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandAddFeature:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommandAddFeature (QgsVectorLayerEditBuffer *buffer, QgsFeature &f)
 Constructor for QgsVectorLayerUndoCommandAddFeature.
 
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 adding a feature to a vector layer.

Definition at line 70 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandAddFeature()

QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature ( QgsVectorLayerEditBuffer buffer,
QgsFeature f 
)

Constructor for QgsVectorLayerUndoCommandAddFeature.

Parameters
bufferassociated edit buffer
ffeature to add to layer

Definition at line 27 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ redo()

void QgsVectorLayerUndoCommandAddFeature::redo ( )
override

Definition at line 56 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandAddFeature::undo ( )
override

Definition at line 45 of file qgsvectorlayerundocommand.cpp.


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