QGIS API Documentation 3.39.0-Master (93ce9bf5c90)
|
A widget for configuring vertical elevation slicing behavior for maps. More...
#include <qgselevationcontrollerwidget.h>
Public Slots | |
void | setFixedRangeSize (double size) |
Sets the fixed range size. | |
void | setInverted (bool inverted) |
Sets whether the elevation slider should be inverted. | |
void | setRange (const QgsDoubleRange &range) |
Sets the current visible range for the widget. | |
void | setRangeLimits (const QgsDoubleRange &limits) |
Sets the limits of the elevation range which can be selected by the widget. | |
void | setSignificantElevations (const QList< double > &elevations) |
Sets a list of significant elevations to highlight in the widget. | |
Signals | |
void | fixedRangeSizeChanged (double size) |
Emitted when the fixed range size is changed from the widget. | |
void | invertedChanged (bool inverted) |
Emitted when the elevation filter slider is inverted. | |
void | rangeChanged (const QgsDoubleRange &range) |
Emitted when the visible range from the widget is changed. | |
Public Member Functions | |
QgsElevationControllerWidget (QWidget *parent=nullptr) | |
Constructor for QgsElevationControllerWidget, with the specified parent widget. | |
double | fixedRangeSize () const |
Returns the fixed range size, or -1 if no fixed size is set. | |
QMenu * | menu () |
Returns a reference to the widget's configuration menu, which can be used to add actions to the menu. | |
QgsDoubleRange | range () const |
Returns the current visible range from the widget. | |
QgsDoubleRange | rangeLimits () const |
Returns the limits of the elevation range which can be selected by the widget. | |
void | resizeEvent (QResizeEvent *event) override |
QgsRangeSlider * | slider () |
Returns a reference to the slider component of the widget. | |
A widget for configuring vertical elevation slicing behavior for maps.
Definition at line 82 of file qgselevationcontrollerwidget.h.
QgsElevationControllerWidget::QgsElevationControllerWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsElevationControllerWidget, with the specified parent widget.
Definition at line 35 of file qgselevationcontrollerwidget.cpp.
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.
Definition at line 220 of file qgselevationcontrollerwidget.cpp.
|
signal |
Emitted when the fixed range size is changed from the widget.
|
signal |
Emitted when the elevation filter slider is inverted.
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 155 of file qgselevationcontrollerwidget.cpp.
QgsDoubleRange QgsElevationControllerWidget::range | ( | ) | const |
Returns the current visible range from the widget.
Definition at line 121 of file qgselevationcontrollerwidget.cpp.
|
signal |
Emitted when the visible range from the widget is changed.
QgsDoubleRange QgsElevationControllerWidget::rangeLimits | ( | ) | const |
Returns the limits of the elevation range which can be selected by the widget.
Definition at line 145 of file qgselevationcontrollerwidget.cpp.
|
override |
Definition at line 115 of file qgselevationcontrollerwidget.cpp.
|
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.
Definition at line 225 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets whether the elevation slider should be inverted.
Definition at line 244 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the current visible range for the widget.
Definition at line 160 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the limits of the elevation range which can be selected by the widget.
Definition at line 175 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets a list of significant elevations to highlight in the widget.
Definition at line 249 of file qgselevationcontrollerwidget.cpp.
QgsRangeSlider * QgsElevationControllerWidget::slider | ( | ) |
Returns a reference to the slider component of the widget.
Definition at line 150 of file qgselevationcontrollerwidget.cpp.