QGIS/python/PyQt6/gui/auto_generated/elevation/qgselevationcontrollerwidget.sip.in
Nyall Dawson 1698bd3391 Store elevation filter fixed range size in project
Remember this setting between sessions for a project
2024-05-01 13:48:19 +10:00

148 lines
3.7 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/elevation/qgselevationcontrollerwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsElevationControllerSettingsAction: QWidgetAction
{
%TypeHeaderCode
#include "qgselevationcontrollerwidget.h"
%End
public:
QgsElevationControllerSettingsAction( QWidget *parent = 0 );
QgsDoubleSpinBox *sizeSpin();
};
class QgsElevationControllerWidget : QWidget
{
%Docstring(signature="appended")
A widget for configuring vertical elevation slicing behavior for maps.
.. versionadded:: 3.38
%End
%TypeHeaderCode
#include "qgselevationcontrollerwidget.h"
%End
public:
QgsElevationControllerWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsElevationControllerWidget, with the specified ``parent`` widget.
%End
virtual void resizeEvent( QResizeEvent *event );
QgsDoubleRange range() const;
%Docstring
Returns the current visible range from the widget.
.. seealso:: :py:func:`setRange`
.. seealso:: :py:func:`rangeChanged`
%End
QgsDoubleRange rangeLimits() const;
%Docstring
Returns the limits of the elevation range which can be selected by the widget.
.. seealso:: :py:func:`rangeLimits`
%End
QgsRangeSlider *slider();
%Docstring
Returns a reference to the slider component of the widget.
%End
QMenu *menu();
%Docstring
Returns a reference to the widget's configuration menu, which can be used
to add actions to the menu.
%End
double fixedRangeSize() const;
%Docstring
Returns the fixed range size, or -1 if no fixed size is set.
A fixed size forces the selected elevation range to have a matching difference between
the upper and lower elevation.
.. seealso:: :py:func:`setFixedRangeSize`
%End
public slots:
void setRange( const QgsDoubleRange &range );
%Docstring
Sets the current visible ``range`` for the widget.
.. seealso:: :py:func:`range`
.. seealso:: :py:func:`rangeChanged`
%End
void setRangeLimits( const QgsDoubleRange &limits );
%Docstring
Sets the limits of the elevation range which can be selected by the widget.
.. seealso:: :py:func:`rangeLimits`
%End
void setFixedRangeSize( double size );
%Docstring
Sets the fixed range ``size``. Set to -1 if no fixed size is desired.
A fixed size forces the selected elevation range to have a matching difference between
the upper and lower elevation.
.. seealso:: :py:func:`fixedRangeSize`
.. seealso:: :py:func:`fixedRangeSizeChanged`
%End
signals:
void rangeChanged( const QgsDoubleRange &range );
%Docstring
Emitted when the visible range from the widget is changed.
.. seealso:: :py:func:`setRange`
.. seealso:: :py:func:`range`
%End
void fixedRangeSizeChanged( double size );
%Docstring
Emitted when the fixed range size is changed from the widget.
.. seealso:: :py:func:`fixedRangeSize`
.. seealso:: :py:func:`setFixedRangeSize`
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/elevation/qgselevationcontrollerwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/