Class: QgsElevationControllerWidget¶
- class qgis.gui.QgsElevationControllerWidget¶
Bases:
PyQt5.QtWidgets.QWidget
A widget for configuring vertical elevation slicing behavior for maps.
Added in version 3.38.
QgsElevationControllerWidget(parent: QWidget = None) Constructor for
QgsElevationControllerWidget
, with the specifiedparent
widget.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.
- param event:
Sets the fixed range
size
.Sets the current visible
range
for the widget.Sets the limits of the elevation range which can be selected by the widget.
Returns a reference to the slider component of the widget.
Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: PyQt5.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- fixedRangeSize(self) float ¶
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
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
Returns a reference to the widget’s configuration menu, which can be used to add actions to the menu.
- Return type:
QMenu
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- nativeEvent(self, Union[QByteArray, bytes, bytearray], PyQt5.sip.voidptr) Tuple[bool, int] ¶
- paintEvent(self, QPaintEvent)¶
- range(self) QgsDoubleRange ¶
Returns the current visible range from the widget.
See also
See also
- Return type:
- rangeChanged¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...)
revision (int = ...)
arguments (Sequence = ...)
- Return type:
PYQT_SIGNAL
- rangeLimits(self) QgsDoubleRange ¶
Returns the limits of the elevation range which can be selected by the widget.
See also
- Return type:
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, event: QResizeEvent)¶
- Parameters:
event (QResizeEvent)
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setFixedRangeSize(self, size: float)¶
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
- Parameters:
size (float)
- setRange(self, range: QgsDoubleRange)¶
Sets the current visible
range
for the widget.See also
See also
- Parameters:
range (QgsDoubleRange)
- setRangeLimits(self, limits: QgsDoubleRange)¶
Sets the limits of the elevation range which can be selected by the widget.
See also
- Parameters:
limits (QgsDoubleRange)
- showEvent(self, QShowEvent)¶
- slider(self) QgsRangeSlider ¶
Returns a reference to the slider component of the widget.
- Return type:
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶