|
Quantum GIS API Documentation
master-693a1fe
|
#include <qgsvectorlayerundocommand.h>
Inheritance diagram for QgsVectorLayerUndoCommandAddFeature:
Collaboration diagram for QgsVectorLayerUndoCommandAddFeature:Public Member Functions | |
| QgsVectorLayerUndoCommandAddFeature (QgsVectorLayerEditBuffer *buffer, QgsFeature &f) | |
| virtual void | redo () |
| virtual void | undo () |
Private Attributes | |
| QgsFeature | mFeature |
Definition at line 47 of file qgsvectorlayerundocommand.h.
| QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature | ( | QgsVectorLayerEditBuffer * | buffer, |
| QgsFeature & | f | ||
| ) |
Definition at line 30 of file qgsvectorlayerundocommand.cpp.
References mFeature, QgsDebugMsg, and QgsFeature::setFeatureId().
| void QgsVectorLayerUndoCommandAddFeature::redo | ( | ) | [virtual] |
Definition at line 62 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), QgsGeometryCache::cacheGeometry(), QgsVectorLayerEditBuffer::featureAdded(), QgsFeature::geometry(), QgsFeature::id(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, and mFeature.
| void QgsVectorLayerUndoCommandAddFeature::undo | ( | ) | [virtual] |
Definition at line 48 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), QgsVectorLayerEditBuffer::featureDeleted(), QgsFeature::geometry(), QgsFeature::id(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, mFeature, and QgsGeometryCache::removeGeometry().
Definition at line 56 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandAddFeature(), redo(), and undo().