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::map::ResampleZCommand Class Reference

Re-sample Z for every feature (or a subset) as ONE undo step. More...

#include <featurecommands.h>

Inheritance diagram for openswmmvis::map::ResampleZCommand:
Collaboration diagram for openswmmvis::map::ResampleZCommand:

Public Member Functions

 ResampleZCommand (FeatureLayer *layer, const QVector< openswmmvis::feature::FeatureId > &ids, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 
void redo () override
 
void undo () override
 
int unsampledCount () const
 Vertices left NaN by the last redo — the count the Features dock reports so an unsampled breakline is visible, not silent.
 
- Public Member Functions inherited from openswmmvis::map::FeatureCommandBase
 FeatureCommandBase (const QString &text, FeatureLayer *layer, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 
FeatureLayerlayer () 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.
 
MapCanvascanvas () 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< FeatureLayerm_layer
 
QString m_lastError
 
- Protected Attributes inherited from MapCommand
MapCanvasm_canvas
 

Detailed Description

Re-sample Z for every feature (or a subset) as ONE undo step.

Snapshots the previous geometries; the whole resample reverts together because a partial revert would leave a layer with mixed vintages of terrain.

Constructor & Destructor Documentation

◆ ResampleZCommand()

openswmmvis::map::ResampleZCommand::ResampleZCommand ( FeatureLayer layer,
const QVector< openswmmvis::feature::FeatureId > &  ids,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)
Parameters
idsFeatures to resample; empty means every feature.
Here is the call graph for this function:

Member Function Documentation

◆ redo()

void openswmmvis::map::ResampleZCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void openswmmvis::map::ResampleZCommand::undo ( )
override
Here is the call graph for this function:

◆ unsampledCount()

int openswmmvis::map::ResampleZCommand::unsampledCount ( ) const
inline

Vertices left NaN by the last redo — the count the Features dock reports so an unsampled breakline is visible, not silent.


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