QGIS/python/gui/auto_generated/raster/qgsrasterminmaxwidget.sip.in

131 lines
3.3 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
class QgsRasterMinMaxWidget: QWidget
{
2017-05-31 15:02:08 +08:00
%TypeHeaderCode
2017-05-31 15:02:08 +08:00
#include "qgsrasterminmaxwidget.h"
%End
public:
QgsRasterMinMaxWidget( QgsRasterLayer *layer, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsRasterMinMaxWidget
%End
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
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
.. seealso:: :py:func:`mapCanvas`
2017-12-15 10:36:55 -04:00
2017-05-31 15:02:08 +08:00
.. versionadded:: 2.16
%End
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.
.. seealso:: :py:func:`setMapCanvas`
2017-12-15 10:36:55 -04:00
2017-05-31 15:02:08 +08:00
.. versionadded:: 2.16
%End
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
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
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
Sets the "source" of min/max values.
2017-05-31 15:02:08 +08:00
%End
QgsRasterMinMaxOrigin minMaxOrigin();
2017-05-31 15:02:08 +08:00
%Docstring
Returns a QgsRasterMinMaxOrigin object with the widget values.
2017-05-31 15:02:08 +08:00
%End
void hideUpdatedExtent();
2017-05-31 15:02:08 +08:00
%Docstring
Hide updated extent choice
%End
void doComputations();
2017-05-31 15:02:08 +08:00
%Docstring
Load programmatically with current values
%End
void userHasSetManualMinMaxValues();
2017-05-31 15:02:08 +08:00
%Docstring
Uncheck cumulative cut, min/max, std-dev radio buttons
%End
bool isCollapsed() const;
2017-05-31 15:02:08 +08:00
%Docstring
Returns if the widget is collaped.
2017-05-31 15:02:08 +08:00
%End
2017-05-31 15:02:08 +08:00
void setCollapsed( bool b );
%Docstring
Sets collapsed state of widget
2017-05-31 15:02:08 +08:00
%End
2013-06-23 16:00:16 +02:00
signals:
2017-05-31 15:02:08 +08: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
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
};
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 *
************************************************************************/