mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
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.
27 lines
874 B
Plaintext
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 );
|
|
};
|