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

Three-choice CRS change confirmation. More...

#include <crschangedialog.h>

Inheritance diagram for CRSChangeDialog:
Collaboration diagram for CRSChangeDialog:

Public Types

enum  Choice {
  Cancel = 0 ,
  Reproject = 1 ,
  RenderOnly = 2
}
 

Public Member Functions

 CRSChangeDialog (const QString &oldAuth, const QString &newAuth, bool sourceIsLocal=false, QWidget *parent=nullptr)
 
Choice choice () const
 

Detailed Description

Three-choice CRS change confirmation.

Displayed by SWMMVis::onCRSButtonClicked when the active project has a non-empty network and the user selects a different CRS.

Member Enumeration Documentation

◆ Choice

Enumerator
Cancel 
Reproject 

Permanently rewrite stored coordinates via OGR transform.

RenderOnly 

Keep stored coordinates; only the canvas display CRS changes.

Constructor & Destructor Documentation

◆ CRSChangeDialog()

CRSChangeDialog::CRSChangeDialog ( const QString &  oldAuth,
const QString &  newAuth,
bool  sourceIsLocal = false,
QWidget *  parent = nullptr 
)
explicit
Parameters
oldAuthAuthority of the model's current CRS (e.g. "EPSG:6595").
newAuthAuthority of the newly-selected CRS.
sourceIsLocalIf true, recommend Reproject — re-render needs a real source CRS to build a transform.
Here is the call graph for this function:

Member Function Documentation

◆ choice()

Choice CRSChangeDialog::choice ( ) const
inline

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