QGIS/python/gui/raster/qgsrasterhistogramwidget.sip

76 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-05-31 11:55:58 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgsrasterhistogramwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterHistogramWidget : QgsMapLayerConfigWidget
{
2017-05-31 11:55:58 +02:00
%Docstring
Histogram widget
%End
%TypeHeaderCode
2017-05-31 11:55:58 +02:00
#include "qgsrasterhistogramwidget.h"
%End
public:
QgsRasterHistogramWidget( QgsRasterLayer *lyr, QWidget *parent /TransferThis/ = 0 );
bool histoSaveAsImage( const QString &filename, int width = 600, int height = 600, int quality = -1 );
2017-05-31 11:55:58 +02:00
%Docstring
Save the histogram as an image to disk
:rtype: bool
%End
2017-05-31 11:55:58 +02:00
void setRendererWidget( const QString &name, QgsRasterRendererWidget *rendererWidget = 0 );
%Docstring
Set the renderer widget (or just its name if there is no widget)
%End
void setActive( bool activeFlag );
2017-05-31 11:55:58 +02:00
%Docstring
Activate the histogram widget
%End
bool computeHistogram( bool forceComputeFlag );
2017-05-31 11:55:58 +02:00
%Docstring
Compute the histogram on demand.
:rtype: bool
%End
void histoAction( const QString &actionName, bool actionFlag = true );
2017-05-31 11:55:58 +02:00
%Docstring
Apply a histoActionTriggered() event.
%End
void setSelectedBand( int index );
2017-05-31 11:55:58 +02:00
%Docstring
Apply a histoActionTriggered() event.
%End
public slots:
void refreshHistogram();
2017-05-31 11:55:58 +02:00
%Docstring
slot executed when user wishes to refresh raster histogramwidget
%End
virtual void apply();
};
2017-05-31 11:55:58 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgsrasterhistogramwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/