Class: QgsRasterMinMaxWidget¶
-
class
qgis.gui.
QgsRasterMinMaxWidget
(layer: QgsRasterLayer, parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QWidget
Constructor for QgsRasterMinMaxWidget
Enums
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.
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
signal emitted when new min/max values are computed from statistics.
Emitted when something on the widget has changed.
Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
doComputations
(self)¶ Load programmatically with current values
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
extent
(self) → QgsRectangle¶ Returns the extent selected by the user. Either an empty extent for ‘full’ or the current visible extent.
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
hideUpdatedExtent
(self)¶ Hide updated extent choice
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isCollapsed
(self) → bool¶ Returns if the widget is collaped.
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
load
¶ signal emitted when new min/max values are computed from statistics. [signal]
-
mapCanvas
(self) → QgsMapCanvas¶ Returns the map canvas associated with the widget.
See also
New in version 2.16.
-
metric
()¶
-
minMaxOrigin
(self) → QgsRasterMinMaxOrigin¶ Returns a QgsRasterMinMaxOrigin object with the widget values.
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
resizeEvent
()¶
-
sampleSize
(self) → int¶ Returns the selected sample size.
-
sender
()¶
-
senderSignalIndex
()¶
-
setBands
(self, bands: Iterable[int])¶
-
setCollapsed
(self, b: bool)¶ Sets collapsed state of widget
-
setExtent
(self, extent: QgsRectangle)¶ Sets the extent to use for minimum and maximum value calculation.
- Parameters
extent – 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 – map canvas
See also
New in version 2.16.
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
userHasSetManualMinMaxValues
(self)¶ Uncheck cumulative cut, min/max, std-dev radio buttons
-
wheelEvent
()¶
-
widgetChanged
¶ Emitted when something on the widget has changed. All widgets will fire this event to notify of an internal change. [signal]
-