QGIS API Documentation
2.0.1-Dufour
|
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommandAddFeature (QgsVectorLayerEditBuffer *buffer, QgsFeature &f) | |
virtual void | undo () |
virtual void | redo () |
Public Member Functions inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer) | |
QgsVectorLayer * | layer () |
QgsGeometryCache * | cache () |
virtual int | id () const |
virtual bool | mergeWith (QUndoCommand *) |
Private Attributes | |
QgsFeature | mFeature |
Additional Inherited Members | |
Protected Attributes inherited from QgsVectorLayerUndoCommand | |
QgsVectorLayerEditBuffer * | mBuffer |
Definition at line 53 of file qgsvectorlayerundocommand.h.
QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature | ( | QgsVectorLayerEditBuffer * | buffer, |
QgsFeature & | f | ||
) |
Definition at line 27 of file qgsvectorlayerundocommand.cpp.
References mFeature, QgsDebugMsg, and QgsFeature::setFeatureId().
|
virtual |
Definition at line 59 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), QgsGeometryCache::cacheGeometry(), QgsVectorLayerEditBuffer::featureAdded(), QgsFeature::geometry(), QgsFeature::id(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, and mFeature.
|
virtual |
Definition at line 45 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), QgsVectorLayerEditBuffer::featureDeleted(), QgsFeature::geometry(), QgsFeature::id(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, mFeature, and QgsGeometryCache::removeGeometry().
|
private |
Definition at line 62 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandAddFeature(), redo(), and undo().