QGIS API Documentation 3.41.0-Master (3291e9ff48b)
|
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 36 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 221 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 156 of file qgselevationcontrollerwidget.cpp.
QgsDoubleRange QgsElevationControllerWidget::range | ( | ) | const |
Returns the current visible range from the widget.
Definition at line 122 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 146 of file qgselevationcontrollerwidget.cpp.
|
override |
Definition at line 116 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 226 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets whether the elevation slider should be inverted.
Definition at line 245 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the current visible range for the widget.
Definition at line 161 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the limits of the elevation range which can be selected by the widget.
Definition at line 176 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets a list of significant elevations to highlight in the widget.
Definition at line 250 of file qgselevationcontrollerwidget.cpp.
QgsRangeSlider * QgsElevationControllerWidget::slider | ( | ) |
Returns a reference to the slider component of the widget.
Definition at line 151 of file qgselevationcontrollerwidget.cpp.