| QGIS API Documentation
    3.18.1-Zürich (202f1bf7e5)
    | 
A widget for selecting the coordinate operation to use when transforming between a source and destination coordinate reference system. More...
#include <qgscoordinateoperationwidget.h>

| Classes | |
| struct | OperationDetails | 
| Coordinate operation details.  More... | |
| Signals | |
| void | operationChanged () | 
| Emitted when the operation selected in the dialog is changed.  More... | |
| void | operationDoubleClicked () | 
| Emitted when an operation is double-clicked in the widget.  More... | |
| Public Member Functions | |
| QgsCoordinateOperationWidget (QWidget *parent=nullptr) | |
| Constructor for QgsCoordinateOperationWidget.  More... | |
| ~QgsCoordinateOperationWidget () override | |
| QList< QgsCoordinateOperationWidget::OperationDetails > | availableOperations () const | 
| Returns a list of the available operations shown in the widget.  More... | |
| QgsCoordinateOperationWidget::OperationDetails | defaultOperation () const | 
| Returns the details of the default operation suggested by the widget.  More... | |
| QgsCoordinateReferenceSystem | destinationCrs () const | 
| Returns the destination CRS for the operations shown in the widget.  More... | |
| bool | hasSelection () const | 
| Returns trueif there is a valid selection in the widget.  More... | |
| bool | makeDefaultSelected () const | 
| Returns trueif the "make default" option is selected.  More... | |
| QgsCoordinateOperationWidget::OperationDetails | selectedOperation () const | 
| Returns the details of the operation currently selected within the widget.  More... | |
| void | setDestinationCrs (const QgsCoordinateReferenceSystem &crs) | 
| Sets the destination crs for the operations shown in the widget.  More... | |
| void | setMapCanvas (QgsMapCanvas *canvas) | 
| Sets a map canvas to link to the widget, which allows the widget's choices to reflect the current canvas state.  More... | |
| void | setSelectedOperation (const QgsCoordinateOperationWidget::OperationDetails &operation) | 
| Sets the details of the operation currently selected within the widget.  More... | |
| void | setSelectedOperationUsingContext (const QgsCoordinateTransformContext &context) | 
| Automatically sets the selected operation using the settings encapsulated in a transform context.  More... | |
| void | setShowFallbackOption (bool visible) | 
| Sets whether the "allow fallback" operations option is visible.  More... | |
| void | setShowMakeDefault (bool show) | 
| Sets whether the "make default" checkbox should be shown.  More... | |
| void | setSourceCrs (const QgsCoordinateReferenceSystem &crs) | 
| Sets the source crs for the operations shown in the widget.  More... | |
| QgsCoordinateReferenceSystem | sourceCrs () const | 
| Returns the source CRS for the operations shown in the widget.  More... | |
A widget for selecting the coordinate operation to use when transforming between a source and destination coordinate reference system.
Definition at line 33 of file qgscoordinateoperationwidget.h.
| QgsCoordinateOperationWidget::QgsCoordinateOperationWidget | ( | QWidget * | parent = nullptr | ) | 
Constructor for QgsCoordinateOperationWidget.
Definition at line 38 of file qgscoordinateoperationwidget.cpp.
| 
 | override | 
Definition at line 459 of file qgscoordinateoperationwidget.cpp.
| QList< QgsCoordinateOperationWidget::OperationDetails > QgsCoordinateOperationWidget::availableOperations | ( | ) | const | 
Returns a list of the available operations shown in the widget.
Definition at line 140 of file qgscoordinateoperationwidget.cpp.
| QgsCoordinateOperationWidget::OperationDetails QgsCoordinateOperationWidget::defaultOperation | ( | ) | const | 
Returns the details of the default operation suggested by the widget.
Definition at line 470 of file qgscoordinateoperationwidget.cpp.
| 
 | inline | 
Returns the destination CRS for the operations shown in the widget.
Definition at line 78 of file qgscoordinateoperationwidget.h.
| bool QgsCoordinateOperationWidget::hasSelection | ( | ) | const | 
Returns true if there is a valid selection in the widget. 
Definition at line 135 of file qgscoordinateoperationwidget.cpp.
| bool QgsCoordinateOperationWidget::makeDefaultSelected | ( | ) | const | 
Returns true if the "make default" option is selected. 
Definition at line 130 of file qgscoordinateoperationwidget.cpp.
| 
 | signal | 
Emitted when the operation selected in the dialog is changed.
| 
 | signal | 
Emitted when an operation is double-clicked in the widget.
| QgsCoordinateOperationWidget::OperationDetails QgsCoordinateOperationWidget::selectedOperation | ( | ) | const | 
Returns the details of the operation currently selected within the widget.
Definition at line 556 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setDestinationCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) | 
Sets the destination crs for the operations shown in the widget.
Definition at line 796 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setMapCanvas | ( | QgsMapCanvas * | canvas | ) | 
Sets a map canvas to link to the widget, which allows the widget's choices to reflect the current canvas state.
Definition at line 92 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setSelectedOperation | ( | const QgsCoordinateOperationWidget::OperationDetails & | operation | ) | 
Sets the details of the operation currently selected within the widget.
Definition at line 580 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setSelectedOperationUsingContext | ( | const QgsCoordinateTransformContext & | context | ) | 
Automatically sets the selected operation using the settings encapsulated in a transform context.
If no matching operations are found within the context then the defaultOperation() will be selected.
Definition at line 625 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setShowFallbackOption | ( | bool | visible | ) | 
Sets whether the "allow fallback" operations option is visible.
Definition at line 659 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setShowMakeDefault | ( | bool | show | ) | 
Sets whether the "make default" checkbox should be shown.
Definition at line 125 of file qgscoordinateoperationwidget.cpp.
| void QgsCoordinateOperationWidget::setSourceCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) | 
Sets the source crs for the operations shown in the widget.
Definition at line 783 of file qgscoordinateoperationwidget.cpp.
| 
 | inline | 
Returns the source CRS for the operations shown in the widget.
Definition at line 70 of file qgscoordinateoperationwidget.h.