#include <qgsdatumtransformdialog.h>
|
| QgsDatumTransformDialog (const QgsCoordinateReferenceSystem &sourceCrs=QgsCoordinateReferenceSystem(), const QgsCoordinateReferenceSystem &destinationCrs=QgsCoordinateReferenceSystem(), bool allowCrsChanges=false, bool showMakeDefault=true, bool forceChoice=true, QPair< int, int > selectedDatumTransforms=qMakePair(-1, -1), QWidget *parent=nullptr, Qt::WindowFlags f=nullptr, const QString &selectedProj=QString()) |
| Constructor for QgsDatumTransformDialog. More...
|
|
| ~QgsDatumTransformDialog () override |
|
void | accept () override |
|
void | reject () override |
|
TransformInfo | selectedDatumTransform () |
| Returns the source and destination transforms, each being a pair of QgsCoordinateReferenceSystems and datum transform code. More...
|
|
- Note
- not available in Python bindings
Definition at line 35 of file qgsdatumtransformdialog.h.
◆ QgsDatumTransformDialog()
QgsDatumTransformDialog::QgsDatumTransformDialog |
( |
const QgsCoordinateReferenceSystem & |
sourceCrs = QgsCoordinateReferenceSystem() , |
|
|
const QgsCoordinateReferenceSystem & |
destinationCrs = QgsCoordinateReferenceSystem() , |
|
|
bool |
allowCrsChanges = false , |
|
|
bool |
showMakeDefault = true , |
|
|
bool |
forceChoice = true , |
|
|
QPair< int, int > |
selectedDatumTransforms = qMakePair( -1, -1 ) , |
|
|
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
f = nullptr , |
|
|
const QString & |
selectedProj = QString() |
|
) |
| |
◆ ~QgsDatumTransformDialog()
QgsDatumTransformDialog::~QgsDatumTransformDialog |
( |
| ) |
|
|
override |
◆ accept()
void QgsDatumTransformDialog::accept |
( |
| ) |
|
|
override |
◆ reject()
void QgsDatumTransformDialog::reject |
( |
| ) |
|
|
override |
◆ run()
Runs the dialog (if required) prompting for the desired transform to use from sourceCrs to destinationCrs, updating the current project transform context as required based on the results of the run.
This handles EVERYTHING, including only showing the dialog if multiple choices exist and the user has asked to be prompted, not re-adding transforms already in the current project context, etc.
- Since
- QGIS 3.8
Definition at line 34 of file qgsdatumtransformdialog.cpp.
◆ selectedDatumTransform()
Returns the source and destination transforms, each being a pair of QgsCoordinateReferenceSystems and datum transform code.
- Since
- 3.0
Definition at line 470 of file qgsdatumtransformdialog.cpp.
◆ TestQgsDatumTransformDialog
friend class TestQgsDatumTransformDialog |
|
friend |
The documentation for this class was generated from the following files: