![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Remove one or more features; undo restores them with their ids. More...
#include <featurecommands.h>
Public Member Functions | |
| DeleteFeaturesCommand (FeatureLayer *layer, const QVector< openswmmvis::feature::FeatureId > &ids, MapCanvas *canvas, QUndoCommand *parent=nullptr) | |
| void | redo () override |
| void | undo () 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 |
Additional Inherited Members | |
Protected Member Functions inherited from openswmmvis::map::FeatureCommandBase | |
| void | recordFailure (const QString &err) const |
Protected Attributes inherited from openswmmvis::map::FeatureCommandBase | |
| QPointer< FeatureLayer > | m_layer |
| QString | m_lastError |
Protected Attributes inherited from MapCommand | |
| MapCanvas * | m_canvas |
Remove one or more features; undo restores them with their ids.
| openswmmvis::map::DeleteFeaturesCommand::DeleteFeaturesCommand | ( | FeatureLayer * | layer, |
| const QVector< openswmmvis::feature::FeatureId > & | ids, | ||
| MapCanvas * | canvas, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
|
override |
|
override |