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
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Histogram widget
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-31 11:55:58 +02:00
|
|
|
#include "qgsrasterhistogramwidget.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2015-02-18 17:00:36 +11:00
|
|
|
QgsRasterHistogramWidget( QgsRasterLayer *lyr, QWidget *parent /TransferThis/ = 0 );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
|
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
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-02-21 18:14:58 +01:00
|
|
|
void setActive( bool activeFlag );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Activate the histogram widget
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
bool computeHistogram( bool forceComputeFlag );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Compute the histogram on demand.
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2014-11-20 14:17:51 +01:00
|
|
|
void histoAction( const QString &actionName, bool actionFlag = true );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Apply a histoActionTriggered() event.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
void setSelectedBand( int index );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Apply a histoActionTriggered() event.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
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();
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|