QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 25 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 42 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 91 of file qgscrsdefinitionwidget.cpp.
Qgis::CrsDefinitionFormat QgsCrsDefinitionWidget::format | ( | ) | const |
Returns the selected CRS format.
Definition at line 81 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the current crs to display in the widget.
Definition at line 60 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 65 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 96 of file qgscrsdefinitionwidget.cpp.
void QgsCrsDefinitionWidget::setFormat | ( | Qgis::CrsDefinitionFormat | format | ) |