Class: QgsRasterMinMaxWidget¶
- class qgis.gui.QgsRasterMinMaxWidget(layer: QgsRasterLayer, parent: QWidget = None)¶
Bases:
PyQt5.QtWidgets.QWidget
Constructor for QgsRasterMinMaxWidget
Methods
Load programmatically with current values
Returns the extent selected by the user.
Hide updated extent choice
Returns if the widget is collaped.
Returns the map canvas associated with the widget.
Returns a
QgsRasterMinMaxOrigin
object with the widget values.Returns the selected sample size.
- param bands:
Sets collapsed state of widget
Sets the extent to use for minimum and maximum value calculation.
Sets the "source" of min/max values.
Sets the map canvas associated with the widget.
Uncheck cumulative cut, min/max, std-dev radio buttons
Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
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)¶
- doComputations(self)¶
Load programmatically with current values
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- extent(self) QgsRectangle ¶
Returns the extent selected by the user. Either an empty extent for ‘full’ or the current visible extent.
- Return type:
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hideEvent(self, QHideEvent)¶
- hideUpdatedExtent(self)¶
Hide updated extent choice
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isCollapsed(self) bool ¶
Returns if the widget is collaped.
- Return type:
bool
- isSignalConnected(self, QMetaMethod) bool ¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- load¶
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
- mapCanvas(self) QgsMapCanvas ¶
Returns the map canvas associated with the widget.
See also
- Return type:
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- minMaxOrigin(self) QgsRasterMinMaxOrigin ¶
Returns a
QgsRasterMinMaxOrigin
object with the widget values.- Return type:
- 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)¶
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, QResizeEvent)¶
- sampleSize(self) int ¶
Returns the selected sample size.
- Return type:
int
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setBands(self, bands: Iterable[int])¶
- Parameters:
bands (Iterable[int])
- setCollapsed(self, b: bool)¶
Sets collapsed state of widget
- Parameters:
b (bool)
- setExtent(self, extent: QgsRectangle)¶
Sets the extent to use for minimum and maximum value calculation.
- Parameters:
extent (QgsRectangle) – extent in raster layer’s CRS
Note
if a map canvas is set using
setMapCanvas()
, its extent will take precedence over any extent set using this method.
- setFromMinMaxOrigin(self, QgsRasterMinMaxOrigin)¶
Sets the “source” of min/max values.
- setMapCanvas(self, canvas: QgsMapCanvas)¶
Sets the map canvas associated with the widget. This allows the widget to retrieve the current map extent from the canvas. If a canvas is set it will take precedence over any extent set from calling
setExtent()
.- Parameters:
canvas (QgsMapCanvas) – map canvas
See also
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- userHasSetManualMinMaxValues(self)¶
Uncheck cumulative cut, min/max, std-dev radio buttons
- wheelEvent(self, QWheelEvent)¶
- widgetChanged¶
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