QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
#include <qgsrasterminmaxwidget.h>
Signals | |
void | load (int bandNo, double min, double max) |
signal emitted when new min/max values are computed from statistics. More... | |
void | widgetChanged () |
Emitted when something on the widget has changed. More... | |
Public Member Functions | |
QgsRasterMinMaxWidget (QgsRasterLayer *layer, QWidget *parent=nullptr) | |
Constructor for QgsRasterMinMaxWidget. More... | |
void | doComputations () |
Load programmatically with current values. More... | |
QgsRectangle | extent () |
Returns the extent selected by the user. More... | |
void | hideUpdatedExtent () |
Hide updated extent choice. More... | |
bool | isCollapsed () const |
Returns if the widget is collaped. More... | |
QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. More... | |
QgsRasterMinMaxOrigin | minMaxOrigin () |
Returns a QgsRasterMinMaxOrigin object with the widget values. More... | |
int | sampleSize () |
Returns the selected sample size. More... | |
void | setBands (const QList< int > &bands) |
void | setCollapsed (bool b) |
Sets collapsed state of widget. More... | |
void | setExtent (const QgsRectangle &extent) |
Sets the extent to use for minimum and maximum value calculation. More... | |
void | setFromMinMaxOrigin (const QgsRasterMinMaxOrigin &) |
Sets the "source" of min/max values. More... | |
void | setMapCanvas (QgsMapCanvas *canvas) |
Sets the map canvas associated with the widget. More... | |
void | userHasSetManualMinMaxValues () |
Uncheck cumulative cut, min/max, std-dev radio buttons. More... | |
Definition at line 37 of file qgsrasterminmaxwidget.h.
QgsRasterMinMaxWidget::QgsRasterMinMaxWidget | ( | QgsRasterLayer * | layer, |
QWidget * | parent = nullptr |
||
) |
Constructor for QgsRasterMinMaxWidget.
Definition at line 32 of file qgsrasterminmaxwidget.cpp.
void QgsRasterMinMaxWidget::doComputations | ( | ) |
Load programmatically with current values.
Definition at line 181 of file qgsrasterminmaxwidget.cpp.
QgsRectangle QgsRasterMinMaxWidget::extent | ( | ) |
Returns the extent selected by the user.
Either an empty extent for 'full' or the current visible extent.
Definition at line 70 of file qgsrasterminmaxwidget.cpp.
void QgsRasterMinMaxWidget::hideUpdatedExtent | ( | ) |
Hide updated extent choice.
Definition at line 245 of file qgsrasterminmaxwidget.cpp.
|
inline |
Returns if the widget is collaped.
Definition at line 97 of file qgsrasterminmaxwidget.h.
|
signal |
signal emitted when new min/max values are computed from statistics.
QgsMapCanvas * QgsRasterMinMaxWidget::mapCanvas | ( | ) |
Returns the map canvas associated with the widget.
Definition at line 59 of file qgsrasterminmaxwidget.cpp.
QgsRasterMinMaxOrigin QgsRasterMinMaxWidget::minMaxOrigin | ( | ) |
Returns a QgsRasterMinMaxOrigin object with the widget values.
Definition at line 140 of file qgsrasterminmaxwidget.cpp.
|
inline |
Returns the selected sample size.
Definition at line 79 of file qgsrasterminmaxwidget.h.
void QgsRasterMinMaxWidget::setBands | ( | const QList< int > & | bands | ) |
Definition at line 64 of file qgsrasterminmaxwidget.cpp.
|
inline |
Sets collapsed state of widget.
Definition at line 100 of file qgsrasterminmaxwidget.h.
|
inline |
Sets the extent to use for minimum and maximum value calculation.
extent | extent in raster layer's CRS |
Definition at line 51 of file qgsrasterminmaxwidget.h.
void QgsRasterMinMaxWidget::setFromMinMaxOrigin | ( | const QgsRasterMinMaxOrigin & | minMaxOrigin | ) |
Sets the "source" of min/max values.
Definition at line 97 of file qgsrasterminmaxwidget.cpp.
void QgsRasterMinMaxWidget::setMapCanvas | ( | QgsMapCanvas * | canvas | ) |
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().
canvas | map canvas |
Definition at line 54 of file qgsrasterminmaxwidget.cpp.
void QgsRasterMinMaxWidget::userHasSetManualMinMaxValues | ( | ) |
Uncheck cumulative cut, min/max, std-dev radio buttons.
Definition at line 84 of file qgsrasterminmaxwidget.cpp.
|
signal |
Emitted when something on the widget has changed.
All widgets will fire this event to notify of an internal change.