QGIS/python/gui/raster/qgsrasterminmaxwidget.sip

46 lines
1.5 KiB
Plaintext
Raw Normal View History

class QgsRasterMinMaxWidget: QWidget
{
%TypeHeaderCode
#include <qgsrasterminmaxwidget.h>
%End
public:
QgsRasterMinMaxWidget( QgsRasterLayer* theLayer, QWidget *parent /TransferThis/ = 0 );
~QgsRasterMinMaxWidget();
/** Sets the extent to use for minimum and maximum value calculation.
* @param theExtent 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.
*/
void setExtent( const QgsRectangle& theExtent );
/** 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().
* @param canvas map canvas
* @see mapCanvas()
* @note added in QGIS 2.16
*/
void setMapCanvas( QgsMapCanvas* canvas );
/** Returns the map canvas associated with the widget.
* @see setMapCanvas()
* @see canvasExtent()
* @note added in QGIS 2.16
*/
QgsMapCanvas* mapCanvas();
void setBands( const QList<int> & theBands );
2016-04-13 08:16:20 +02:00
/** Return the extent selected by the user.
Either an empty extent for 'full' or the current visible extent. */
2016-04-09 09:17:30 +02:00
QgsRectangle extent();
2016-04-13 08:16:20 +02:00
/** Return the selected sample size. */
2016-04-09 09:17:30 +02:00
int sampleSize();
2013-06-23 16:00:16 +02:00
// Load programmaticaly with current values
void load();
signals:
2012-10-06 11:22:52 +02:00
void load( int theBandNo, double theMin, double theMax, int origin );
};