QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Slots | Signals | Public Member Functions | List of all members
QgsElevationControllerWidget Class Reference

A widget for configuring vertical elevation slicing behavior for maps. More...

#include <qgselevationcontrollerwidget.h>

Inheritance diagram for QgsElevationControllerWidget:
Inheritance graph
[legend]

Public Slots

void setFixedRangeSize (double size)
 Sets the fixed range size. More...
 
void setRange (const QgsDoubleRange &range)
 Sets the current visible range for the widget. More...
 
void setRangeLimits (const QgsDoubleRange &limits)
 Sets the limits of the elevation range which can be selected by the widget. More...
 

Signals

void rangeChanged (const QgsDoubleRange &range)
 Emitted when the visible range from the widget is changed. More...
 

Public Member Functions

 QgsElevationControllerWidget (QWidget *parent=nullptr)
 Constructor for QgsElevationControllerWidget, with the specified parent widget. More...
 
double fixedRangeSize () const
 Returns the fixed range size, or -1 if no fixed size is set. More...
 
QMenu * menu ()
 Returns a reference to the widget's configuration menu, which can be used to add actions to the menu. More...
 
QgsDoubleRange range () const
 Returns the current visible range from the widget. More...
 
QgsDoubleRange rangeLimits () const
 Returns the limits of the elevation range which can be selected by the widget. More...
 
void resizeEvent (QResizeEvent *event) override
 
QgsRangeSliderslider ()
 Returns a reference to the slider component of the widget. More...
 

Detailed Description

A widget for configuring vertical elevation slicing behavior for maps.

Since
QGIS 3.38

Definition at line 78 of file qgselevationcontrollerwidget.h.

Constructor & Destructor Documentation

◆ QgsElevationControllerWidget()

QgsElevationControllerWidget::QgsElevationControllerWidget ( QWidget *  parent = nullptr)

Constructor for QgsElevationControllerWidget, with the specified parent widget.

Definition at line 35 of file qgselevationcontrollerwidget.cpp.

Member Function Documentation

◆ fixedRangeSize()

double QgsElevationControllerWidget::fixedRangeSize ( ) const

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.

See also
setFixedRangeSize()

Definition at line 209 of file qgselevationcontrollerwidget.cpp.

◆ menu()

QMenu * QgsElevationControllerWidget::menu ( )

Returns a reference to the widget's configuration menu, which can be used to add actions to the menu.

Definition at line 144 of file qgselevationcontrollerwidget.cpp.

◆ range()

QgsDoubleRange QgsElevationControllerWidget::range ( ) const

Returns the current visible range from the widget.

See also
setRange()
rangeChanged()

Definition at line 110 of file qgselevationcontrollerwidget.cpp.

◆ rangeChanged

void QgsElevationControllerWidget::rangeChanged ( const QgsDoubleRange range)
signal

Emitted when the visible range from the widget is changed.

See also
setRange()
range()

◆ rangeLimits()

QgsDoubleRange QgsElevationControllerWidget::rangeLimits ( ) const

Returns the limits of the elevation range which can be selected by the widget.

See also
rangeLimits()

Definition at line 134 of file qgselevationcontrollerwidget.cpp.

◆ resizeEvent()

void QgsElevationControllerWidget::resizeEvent ( QResizeEvent *  event)
override

Definition at line 104 of file qgselevationcontrollerwidget.cpp.

◆ setFixedRangeSize

void QgsElevationControllerWidget::setFixedRangeSize ( double  size)
slot

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.

See also
fixedRangeSize()

Definition at line 214 of file qgselevationcontrollerwidget.cpp.

◆ setRange

void QgsElevationControllerWidget::setRange ( const QgsDoubleRange range)
slot

Sets the current visible range for the widget.

See also
range()
rangeChanged()

Definition at line 149 of file qgselevationcontrollerwidget.cpp.

◆ setRangeLimits

void QgsElevationControllerWidget::setRangeLimits ( const QgsDoubleRange limits)
slot

Sets the limits of the elevation range which can be selected by the widget.

See also
rangeLimits()

Definition at line 164 of file qgselevationcontrollerwidget.cpp.

◆ slider()

QgsRangeSlider * QgsElevationControllerWidget::slider ( )

Returns a reference to the slider component of the widget.

Definition at line 139 of file qgselevationcontrollerwidget.cpp.


The documentation for this class was generated from the following files: