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

Records an extent change (pan or zoom) for undo/redo. More...

#include <mapundostack.h>

Inheritance diagram for PanZoomCommand:
Collaboration diagram for PanZoomCommand:

Public Member Functions

 PanZoomCommand (const MapExtent &oldExtent, const MapExtent &newExtent, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
bool mergeWith (const QUndoCommand *other) override
 Attempts to merge consecutive pan operations into a single command.
 
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 an extent change (pan or zoom) for undo/redo.

Constructor & Destructor Documentation

◆ PanZoomCommand()

PanZoomCommand::PanZoomCommand ( const MapExtent oldExtent,
const MapExtent newExtent,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ id()

int PanZoomCommand::id ( ) const
inlineoverride

◆ mergeWith()

bool PanZoomCommand::mergeWith ( const QUndoCommand *  other)
override

Attempts to merge consecutive pan operations into a single command.

◆ redo()

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

◆ undo()

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

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