QGIS/python/gui/raster/qgssinglebandgrayrendererwidget.sip
Even Rouault 532eb58d1f [FEATURE] Implement raster auto-stretching when updating canvas
This commit implements the improvements described at:
https://lists.osgeo.org/pipermail/qgis-developer/2016-September/044393.html

The QgsRasterMinMaxWidget now offers a seetting to specify that the statistics
should be computed each time the canvas extent changes.

Other changes:
- the content of the QgsRasterMinMaxWidget is now persistant.
- there is no longer any Load button. The global Apply / OK button of the raster
  properties dialog has this effect.
- the default "limits" for single band raster is now MinMax and not CumulativeCut
- the default "limits" can be configured for single band, multi band single byte and
  multi band multi byte
- "Strech using current extent" honours the "limits" instead of forcing min/max.
2016-12-16 12:36:06 +01:00

27 lines
874 B
Plaintext

class QgsSingleBandGrayRendererWidget: QgsRasterRendererWidget
{
%TypeHeaderCode
#include <qgssinglebandgrayrendererwidget.h>
%End
public:
QgsSingleBandGrayRendererWidget( QgsRasterLayer* layer, const QgsRectangle &extent = QgsRectangle() );
~QgsSingleBandGrayRendererWidget();
static QgsRasterRendererWidget* create( QgsRasterLayer* layer, const QgsRectangle &theExtent ) /Factory/;
QgsRasterRenderer* renderer();
void setMapCanvas( QgsMapCanvas* canvas );
void setFromRenderer( const QgsRasterRenderer* r );
QString min( int index = 0 );
QString max( int index = 0 );
void setMin( const QString& value, int index = 0 );
void setMax( const QString& value, int index = 0 );
int selectedBand( int index = 0 );
void doComputations();
public slots:
void loadMinMax( int theBandNo, double theMin, double theMax );
};