SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
AddSubcatchmentCommand Class Reference

Records the creation of a subcatchment polygon. More...

#include <mapundostack.h>

Inheritance diagram for AddSubcatchmentCommand:
Collaboration diagram for AddSubcatchmentCommand:

Public Member Functions

 AddSubcatchmentCommand (SWMMModelLayer *layer, QString name, QVector< QPointF > polygon, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
int id () const override
 
- Public Member Functions inherited from MapCommand
 MapCommand (const QString &text, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 Constructs a map command with a human-readable text.
 
MapCanvascanvas () const
 

Additional Inherited Members

- Protected Attributes inherited from MapCommand
MapCanvasm_canvas
 

Detailed Description

Records the creation of a subcatchment polygon.

Constructor & Destructor Documentation

◆ AddSubcatchmentCommand()

AddSubcatchmentCommand::AddSubcatchmentCommand ( SWMMModelLayer layer,
QString  name,
QVector< QPointF >  polygon,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ id()

int AddSubcatchmentCommand::id ( ) const
inlineoverride

◆ redo()

void AddSubcatchmentCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void AddSubcatchmentCommand::undo ( )
override
Here is the call graph for this function:

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