2017-05-31 15:02:08 +08:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/raster/qgsrasterminmaxwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterMinMaxWidget: QWidget
|
|
|
|
{
|
2017-05-31 15:02:08 +08:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-31 15:02:08 +08:00
|
|
|
#include "qgsrasterminmaxwidget.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterMinMaxWidget( QgsRasterLayer *layer, QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsRasterMinMaxWidget
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setExtent( const QgsRectangle &extent );
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the extent to use for minimum and maximum value calculation.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param extent: extent in raster layer's CRS
|
|
|
|
|
2017-05-31 15:02:08 +08:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
if a map canvas is set using setMapCanvas(), its extent will take
|
2018-01-12 20:51:17 -04:00
|
|
|
precedence over any extent set using this method.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2016-06-30 18:25:20 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setMapCanvas( QgsMapCanvas *canvas );
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
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().
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param canvas: map canvas
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`mapCanvas`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-31 15:02:08 +08:00
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
2016-06-30 18:25:20 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsMapCanvas *mapCanvas();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the map canvas associated with the widget.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setMapCanvas`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-31 15:02:08 +08:00
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setBands( const QList<int> &bands );
|
2017-05-31 15:02:08 +08:00
|
|
|
|
2016-04-09 09:17:30 +02:00
|
|
|
QgsRectangle extent();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Returns the extent selected by the user.
|
2017-12-15 10:36:55 -04:00
|
|
|
Either an empty extent for 'full' or the current visible extent.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
|
|
|
|
2016-04-09 09:17:30 +02:00
|
|
|
int sampleSize();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Returns the selected sample size.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2016-04-09 09:17:30 +02:00
|
|
|
|
2017-05-31 15:02:08 +08:00
|
|
|
void setFromMinMaxOrigin( const QgsRasterMinMaxOrigin & );
|
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Sets the "source" of min/max values.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
|
|
|
QgsRasterMinMaxOrigin minMaxOrigin();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Returns a QgsRasterMinMaxOrigin object with the widget values.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
|
|
|
void hideUpdatedExtent();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Hide updated extent choice
|
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
|
|
|
void doComputations();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Load programmatically with current values
|
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
|
|
|
void userHasSetManualMinMaxValues();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Uncheck cumulative cut, min/max, std-dev radio buttons
|
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
|
|
|
bool isCollapsed() const;
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Returns if the widget is collaped.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
2017-05-31 15:02:08 +08:00
|
|
|
void setCollapsed( bool b );
|
|
|
|
%Docstring
|
2018-05-25 13:54:27 +10:00
|
|
|
Sets collapsed state of widget
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
signals:
|
2017-05-31 15:02:08 +08:00
|
|
|
|
2016-12-15 01:31:05 +01:00
|
|
|
void widgetChanged();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Emitted when something on the widget has changed.
|
|
|
|
All widgets will fire this event to notify of an internal change.
|
2017-05-31 15:02:08 +08:00
|
|
|
%End
|
2016-12-15 01:31:05 +01:00
|
|
|
|
2017-02-21 18:14:58 +01:00
|
|
|
void load( int bandNo, double min, double max );
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
signal emitted when new min/max values are computed from statistics.
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-05-31 15:02:08 +08:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/raster/qgsrasterminmaxwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|