QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A widget for definition a custom coordinate reference system. More...
#include <qgscrsdefinitionwidget.h>
Signals | |
void | crsChanged () |
Emitted when the CRS defined in the widget is changed. | |
Public Member Functions | |
QgsCrsDefinitionWidget (QWidget *parent=nullptr) | |
Constructor for QgsCrsDefinitionWidget, with the specified parent widget. | |
QgsCoordinateReferenceSystem | crs () const |
Returns the current CRS as defined in the widget. | |
QString | definitionString () const |
Returns the current definition string. | |
Qgis::CrsDefinitionFormat | format () const |
Returns the selected CRS format. | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the current crs to display in the widget. | |
void | setCrs (const QgsCoordinateReferenceSystem &crs, Qgis::CrsDefinitionFormat nativeFormat) |
Sets the current crs to display in the widget. | |
void | setDefinitionString (const QString &definition) |
Sets the current definition string. | |
void | setFormat (Qgis::CrsDefinitionFormat format) |
Sets the CRS format. | |
A widget for definition a custom coordinate reference system.
Definition at line 31 of file qgscrsdefinitionwidget.h.
QgsCrsDefinitionWidget::QgsCrsDefinitionWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsCrsDefinitionWidget, with the specified parent widget.
Definition at line 26 of file qgscrsdefinitionwidget.cpp.
QgsCoordinateReferenceSystem QgsCrsDefinitionWidget::crs | ( | ) | const |
Returns the current CRS as defined in the widget.
An invalid CRS may be returned if no CRS is defined in the widget.
Definition at line 43 of file qgscrsdefinitionwidget.cpp.
|
signal |
Emitted when the CRS defined in the widget is changed.
QString QgsCrsDefinitionWidget::definitionString | ( | ) | const |
Returns the current definition string.
This represents the unaltered user-entered definition string, which may represent either a WKT or PROJ string (see format()), and may not represent a valid CRS definition.
Definition at line 92 of file qgscrsdefinitionwidget.cpp.
Qgis::CrsDefinitionFormat QgsCrsDefinitionWidget::format | ( | ) | const |
Returns the selected CRS format.
Definition at line 82 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the current crs to display in the widget.
Definition at line 61 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setCrs | ( | const QgsCoordinateReferenceSystem & | crs, |
Qgis::CrsDefinitionFormat | nativeFormat | ||
) |
Sets the current crs to display in the widget.
The nativeFormat argument specifies the format (e.g. WKT or PROJ) is natively associated with the custom CRS.
Definition at line 66 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setDefinitionString | ( | const QString & | definition | ) |
Sets the current definition string.
This represents the unaltered user-entered definition string, which may represent either a WKT or PROJ string (see format()), and may not represent a valid CRS definition.
Definition at line 97 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setFormat | ( | Qgis::CrsDefinitionFormat | format | ) |