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
openswmmvis::curve::BulkSetCurvePointsCommand Class Reference

Set one or more point coordinates atomically. Indices and the pre/post coordinate vectors must be the same length. Out-of-range indices on apply are skipped. More...

#include <curveundocommands.h>

Inheritance diagram for openswmmvis::curve::BulkSetCurvePointsCommand:
Collaboration diagram for openswmmvis::curve::BulkSetCurvePointsCommand:

Public Member Functions

 BulkSetCurvePointsCommand (CurveProvider *provider, QVector< int > indices, QVector< CurvePoint > oldPoints, QVector< CurvePoint > newPoints, QString description, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 

Detailed Description

Set one or more point coordinates atomically. Indices and the pre/post coordinate vectors must be the same length. Out-of-range indices on apply are skipped.

Constructor & Destructor Documentation

◆ BulkSetCurvePointsCommand()

openswmmvis::curve::BulkSetCurvePointsCommand::BulkSetCurvePointsCommand ( CurveProvider provider,
QVector< int >  indices,
QVector< CurvePoint oldPoints,
QVector< CurvePoint newPoints,
QString  description,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

void openswmmvis::curve::BulkSetCurvePointsCommand::redo ( )
override

◆ undo()

void openswmmvis::curve::BulkSetCurvePointsCommand::undo ( )
override

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