Class: QgsElevationControllerWidget¶
A widget for configuring vertical elevation slicing behavior for maps.
Added in version 3.38.
Class Hierarchy¶
Base classes¶
Methods
Returns the fixed range size, or -1 if no fixed size is set. |
|
Returns a reference to the widget's configuration menu, which can be used to add actions to the menu. |
|
Returns the current visible range from the widget. |
|
Returns the limits of the elevation range which can be selected by the widget. |
|
Sets the fixed range size. |
|
Sets whether the elevation slider should be inverted. |
|
Sets the current visible range for the widget. |
|
Sets the limits of the elevation range which can be selected by the widget. |
|
Sets a list of significant elevations to highlight in the widget. |
|
Returns a reference to the slider component of the widget. |
Signals
Emitted when the fixed range size is changed from the widget. |
|
Emitted when the elevation filter slider is inverted. |
|
Emitted when the visible range from the widget is changed. |
- class qgis.gui.QgsElevationControllerWidget[source]¶
Bases:
QWidget
- __init__(parent: QWidget | None = None)
Constructor for QgsElevationControllerWidget, with the specified
parent
widget.- Parameters:
parent (Optional[QWidget] = None)
- fixedRangeSize(self) float [source]¶
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
- Return type:
float
- signal fixedRangeSizeChanged(size: float)[source]¶
Emitted when the fixed range size is changed from the widget.
See also
See also
- Parameters:
size (float)
- signal invertedChanged(inverted: bool)[source]¶
Emitted when the elevation filter slider is inverted.
See also
- Parameters:
inverted (bool)
Returns a reference to the widget’s configuration menu, which can be used to add actions to the menu.
- Return type:
Optional[QMenu]
- range(self) QgsDoubleRange [source]¶
Returns the current visible range from the widget.
See also
See also
- Return type:
- signal rangeChanged(range: QgsDoubleRange)[source]¶
Emitted when the visible range from the widget is changed.
See also
See also
- Parameters:
range (QgsDoubleRange)
- rangeLimits(self) QgsDoubleRange [source]¶
Returns the limits of the elevation range which can be selected by the widget.
See also
- Return type:
- setFixedRangeSize(self, size: float)[source]¶
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
See also
- Parameters:
size (float)
- setInverted(self, inverted: bool)[source]¶
Sets whether the elevation slider should be inverted.
See also
- Parameters:
inverted (bool)
- setRange(self, range: QgsDoubleRange)[source]¶
Sets the current visible
range
for the widget.See also
See also
- Parameters:
range (QgsDoubleRange)
- setRangeLimits(self, limits: QgsDoubleRange)[source]¶
Sets the limits of the elevation range which can be selected by the widget.
See also
- Parameters:
limits (QgsDoubleRange)
- setSignificantElevations(self, elevations: Iterable[float])[source]¶
Sets a list of significant
elevations
to highlight in the widget.- Parameters:
elevations (Iterable[float])
- slider(self) QgsRangeSlider | None [source]¶
Returns a reference to the slider component of the widget.
- Return type:
Optional[QgsRangeSlider]