|
| | EditFeatureGeometryCommand (FeatureLayer *layer, openswmmvis::feature::FeatureId id, const openswmmvis::feature::FeatureGeometry &oldGeom, const openswmmvis::feature::FeatureGeometry &newGeom, const QString &text, bool mergeable, MapCanvas *canvas, QUndoCommand *parent=nullptr) |
| |
| void | redo () override |
| |
| void | undo () override |
| |
| int | id () const override |
| |
| bool | mergeWith (const QUndoCommand *other) override |
| |
Public Member Functions inherited from openswmmvis::map::FeatureCommandBase |
| | FeatureCommandBase (const QString &text, FeatureLayer *layer, MapCanvas *canvas, QUndoCommand *parent=nullptr) |
| |
| FeatureLayer * | layer () const |
| |
| QString | lastError () const |
| | The message from the last failed apply, for the caller to show. Empty when the command has not failed.
|
| |
Public Member Functions inherited from MapCommand |
| | MapCommand (const QString &text, MapCanvas *canvas, QUndoCommand *parent=nullptr) |
| | Constructs a map command with a human-readable text.
|
| |
| MapCanvas * | canvas () const |
| |
Replace one feature's geometry.
Merges with a following edit of the SAME feature so a vertex drag collapses to one undo step, the way MoveNodeCommand::mergeWith (mapundostack.h:339) does for a node drag. Set mergeable false for a discrete edit (insert / delete vertex, add hole, add part) that should stand on its own.