mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
class QgsRasterRendererWidget: QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsrasterrendererwidget.h>
|
|
%End
|
|
public:
|
|
QgsRasterRendererWidget( QgsRasterLayer* layer, const QgsRectangle &extent );
|
|
virtual ~QgsRasterRendererWidget();
|
|
|
|
enum LoadMinMaxAlgo
|
|
{
|
|
Estimate,
|
|
Actual,
|
|
CurrentExtent,
|
|
CumulativeCut // 2 - 98% cumulative cut
|
|
};
|
|
|
|
virtual QgsRasterRenderer* renderer() = 0 /Factory/;
|
|
|
|
void setRasterLayer( QgsRasterLayer* layer );
|
|
const QgsRasterLayer* rasterLayer() const;
|
|
|
|
virtual QString min( int index = 0 );
|
|
virtual QString max( int index = 0 );
|
|
virtual void setMin( const QString& value, int index = 0 );
|
|
virtual void setMax( const QString& value, int index = 0 );
|
|
virtual QString stdDev();
|
|
virtual void setStdDev( const QString& value );
|
|
virtual int selectedBand( int index = 0 );
|
|
|
|
signals:
|
|
/**
|
|
* Emmited when something on the widget has changed.
|
|
* All widgets will fire this event to notify of an internal change.
|
|
*/
|
|
void widgetChanged();
|
|
|
|
|
|
protected:
|
|
/** Returns a band name for display. First choice is color name, otherwise band number*/
|
|
QString displayBandName( int band ) const;
|
|
};
|