QGIS API Documentation  2.4.0-Chugiak
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsVectorLayerUndoCommandChangeGeometry Class Reference

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandChangeGeometry:
Inheritance graph
[legend]
Collaboration diagram for QgsVectorLayerUndoCommandChangeGeometry:
Collaboration graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommandChangeGeometry (QgsVectorLayerEditBuffer *buffer, QgsFeatureId fid, QgsGeometry *newGeom)
 
 ~QgsVectorLayerUndoCommandChangeGeometry ()
 
virtual void undo ()
 
virtual void redo ()
 
virtual int id () const
 
virtual bool mergeWith (const QUndoCommand *)
 
- Public Member Functions inherited from QgsVectorLayerUndoCommand
 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
 
QgsVectorLayerlayer ()
 
QgsGeometryCachecache ()
 
virtual bool mergeWith (QUndoCommand *)
 

Private Attributes

QgsFeatureId mFid
 
QgsGeometrymOldGeom
 
QgsGeometrymNewGeom
 

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerUndoCommand
QgsVectorLayerEditBuffermBuffer
 

Detailed Description

Definition at line 80 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

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

Definition at line 159 of file qgsvectorlayerundocommand.cpp.

References mNewGeom, and mOldGeom.

Member Function Documentation

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.

References id(), mFid, and mNewGeom.

void QgsVectorLayerUndoCommandChangeGeometry::redo ( )
virtual
void QgsVectorLayerUndoCommandChangeGeometry::undo ( )
virtual

Member Data Documentation

QgsFeatureId QgsVectorLayerUndoCommandChangeGeometry::mFid
private
QgsGeometry* QgsVectorLayerUndoCommandChangeGeometry::mNewGeom
mutableprivate
QgsGeometry* QgsVectorLayerUndoCommandChangeGeometry::mOldGeom
private

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