Class: QgsElevationControllerWidget¶
A widget for configuring vertical elevation slicing behavior for maps.
Added in version 3.38.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Methods
Returns the fixed range size, or -1 if no fixed size is set. |
|
Returns the map canvas the widget takes its layers from. |
|
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 map canvas the widget takes its layers from. |
|
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
parentwidget.- 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)
- mapCanvas(self) QgsMapCanvas | None[source]¶
Returns the map canvas the widget takes its layers from.
See also
Added in version 4.4.
- Return type:
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)
- setMapCanvas(self, canvas: QgsMapCanvas | None)[source]¶
Sets the map
canvasthe 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.
See also
Added in version 4.4.
- Parameters:
canvas (Optional[QgsMapCanvas])
- setRange(self, range: QgsDoubleRange)[source]¶
Sets the current visible
rangefor 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
elevationsto 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: