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
SetLinkVerticesCommand Class Reference

Undoable replacement of a link's interior polyline vertices. More...

#include <importcommands.h>

Inheritance diagram for SetLinkVerticesCommand:
Collaboration diagram for SetLinkVerticesCommand:

Public Member Functions

 SetLinkVerticesCommand (SWMMModelLayer *layer, QString linkName, QVector< QPointF > oldInterior, QVector< QPointF > newInterior, 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

Undoable replacement of a link's interior polyline vertices.

Constructor & Destructor Documentation

◆ SetLinkVerticesCommand()

SetLinkVerticesCommand::SetLinkVerticesCommand ( SWMMModelLayer layer,
QString  linkName,
QVector< QPointF >  oldInterior,
QVector< QPointF >  newInterior,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ id()

int SetLinkVerticesCommand::id ( ) const
inlineoverride

◆ redo()

void SetLinkVerticesCommand::redo ( )
override

◆ undo()

void SetLinkVerticesCommand::undo ( )
override

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