|
QGIS API Documentation 4.3.0-Master (90cb4ecf9ef)
|
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 | setMapCanvas (QgsMapCanvas *canvas) |
| Sets the map canvas the widget takes its layers from. | |
| 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. | |
| QgsMapCanvas * | mapCanvas () const |
| Returns the map canvas the widget takes its layers from. | |
| 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 114 of file qgselevationcontrollerwidget.h.
| QgsElevationControllerWidget::QgsElevationControllerWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsElevationControllerWidget, with the specified parent widget.
Definition at line 48 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 369 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.
| QgsMapCanvas * QgsElevationControllerWidget::mapCanvas | ( | ) | const |
Returns the map canvas the widget takes its layers from.
Definition at line 200 of file qgselevationcontrollerwidget.cpp.
| 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 195 of file qgselevationcontrollerwidget.cpp.
| QgsDoubleRange QgsElevationControllerWidget::range | ( | ) | const |
Returns the current visible range from the widget.
Definition at line 180 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 185 of file qgselevationcontrollerwidget.cpp.
|
override |
Definition at line 174 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 374 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets whether the elevation slider should be inverted.
Definition at line 394 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the map canvas the widget takes its layers from.
The canvas provides the layer used by the "Current Layer" entry of the range limits button, and its layers give the initial limits when the project defines no elevation range of its own.
Definition at line 205 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the current visible range for the widget.
Definition at line 238 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets the limits of the elevation range which can be selected by the widget.
Definition at line 253 of file qgselevationcontrollerwidget.cpp.
|
slot |
Sets a list of significant elevations to highlight in the widget.
Definition at line 399 of file qgselevationcontrollerwidget.cpp.
| QgsRangeSlider * QgsElevationControllerWidget::slider | ( | ) |
Returns a reference to the slider component of the widget.
Definition at line 190 of file qgselevationcontrollerwidget.cpp.