|
QGIS API Documentation
master-59fd5e0
|
#include <qgsvectorlayerundocommand.h>
Inheritance diagram for QgsVectorLayerUndoCommandChangeGeometry:
Collaboration diagram for QgsVectorLayerUndoCommandChangeGeometry:Public Member Functions | |
| QgsVectorLayerUndoCommandChangeGeometry (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, QgsGeometry *newGeom) | |
| ~QgsVectorLayerUndoCommandChangeGeometry () | |
| virtual int | id () const |
| virtual bool | mergeWith (const QUndoCommand *) |
| virtual void | redo () |
| virtual void | undo () |
Private Attributes | |
| QgsFeatureId | mFid |
| QgsGeometry * | mNewGeom |
| QgsGeometry * | mOldGeom |
Definition at line 80 of file qgsvectorlayerundocommand.h.
| QgsVectorLayerUndoCommandChangeGeometry::QgsVectorLayerUndoCommandChangeGeometry | ( | QgsVectorLayerEditBuffer * | buffer, |
| QgsFeatureId | fid, | ||
| QgsGeometry * | newGeom | ||
| ) |
Definition at line 114 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), FID_IS_NEW, QgsGeometryCache::geometry(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedGeometries, mFid, mNewGeom, and mOldGeom.
Definition at line 156 of file qgsvectorlayerundocommand.cpp.
| int QgsVectorLayerUndoCommandChangeGeometry::id | ( | ) | const [virtual] |
Reimplemented from QgsVectorLayerUndoCommand.
Definition at line 135 of file qgsvectorlayerundocommand.cpp.
Referenced by mergeWith().
| bool QgsVectorLayerUndoCommandChangeGeometry::mergeWith | ( | const QUndoCommand * | other | ) | [virtual] |
Definition at line 140 of file qgsvectorlayerundocommand.cpp.
| void QgsVectorLayerUndoCommandChangeGeometry::redo | ( | ) | [virtual] |
Definition at line 199 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), QgsGeometryCache::cacheGeometry(), FID_IS_NEW, QgsVectorLayerEditBuffer::geometryChanged(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedGeometries, mFid, and mNewGeom.
| void QgsVectorLayerUndoCommandChangeGeometry::undo | ( | ) | [virtual] |
Definition at line 162 of file qgsvectorlayerundocommand.cpp.
References QgsVectorLayerUndoCommand::cache(), QgsGeometryCache::cacheGeometry(), FID_IS_NEW, QgsFeature::geometry(), QgsVectorLayerEditBuffer::geometryChanged(), QgsVectorLayerUndoCommand::layer(), QgsVectorLayerEditBuffer::mAddedFeatures, QgsVectorLayerUndoCommand::mBuffer, QgsVectorLayerEditBuffer::mChangedGeometries, mFid, and mOldGeom.
Definition at line 92 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeGeometry(), redo(), and undo().
QgsGeometry* QgsVectorLayerUndoCommandChangeGeometry::mNewGeom [mutable, private] |
Definition at line 94 of file qgsvectorlayerundocommand.h.
Referenced by mergeWith(), QgsVectorLayerUndoCommandChangeGeometry(), redo(), and ~QgsVectorLayerUndoCommandChangeGeometry().
Definition at line 93 of file qgsvectorlayerundocommand.h.
Referenced by QgsVectorLayerUndoCommandChangeGeometry(), undo(), and ~QgsVectorLayerUndoCommandChangeGeometry().