getter for the output crs in QgsExtentGroupBox

This commit is contained in:
Etienne Trimaille 2017-12-15 00:14:36 +01:00 committed by Nyall Dawson
parent bbf00279ad
commit ff15896c30
2 changed files with 17 additions and 0 deletions

View File

@ -103,9 +103,18 @@ class QgsExtentGroupBox : QgsCollapsibleGroupBox
QgsRectangle outputExtent() const;
%Docstring
Returns the extent shown in the widget - in output CRS coordinates.
.. seealso:: :py:func:`outputCrs`
:rtype: QgsRectangle
%End
QgsCoordinateReferenceSystem outputCrs() const;
%Docstring
Returns the current output CRS, used in the display.
.. seealso:: :py:func:`outputExtent`
.. versionadded:: 3.0
:rtype: QgsCoordinateReferenceSystem
%End
QgsExtentGroupBox::ExtentState extentState() const;
%Docstring
Returns the currently selected state for the widget's extent.

View File

@ -120,9 +120,17 @@ class GUI_EXPORT QgsExtentGroupBox : public QgsCollapsibleGroupBox, private Ui::
/**
* Returns the extent shown in the widget - in output CRS coordinates.
* \see outputCrs
*/
QgsRectangle outputExtent() const;
/**
* Returns the current output CRS, used in the display.
* \see outputExtent
* \since QGIS 3.0
*/
QgsCoordinateReferenceSystem outputCrs() const { return mOutputCrs; }
/**
* Returns the currently selected state for the widget's extent.
*/