QGIS API Documentation
2.8.2-Wien
|
Histogram widget. More...
#include <qgsrasterhistogramwidget.h>
Public Slots | |
void | on_mSaveAsImageButton_clicked () |
This slot lets you save the histogram as an image to disk. | |
void | refreshHistogram () |
slot executed when user wishes to refresh raster histogramwidget |
Public Member Functions | |
QgsRasterHistogramWidget (QgsRasterLayer *lyr, QWidget *parent=0) | |
~QgsRasterHistogramWidget () | |
bool | computeHistogram (bool forceComputeFlag) |
Compute the histogram on demand. | |
void | histoAction (const QString &actionName, bool actionFlag=true) |
Apply a histoActionTriggered() event. | |
bool | histoSaveAsImage (const QString &theFilename, int width=600, int height=600, int quality=-1) |
Save the histogram as an image to disk. | |
void | setActive (bool theActiveFlag) |
Activate the histogram widget. | |
void | setRendererWidget (const QString &name, QgsRasterRendererWidget *rendererWidget=NULL) |
Set the renderer widget (or just its name if there is no widget) | |
void | setSelectedBand (int index) |
Apply a histoActionTriggered() event. |
Histogram widget.
Definition at line 37 of file qgsrasterhistogramwidget.h.
QgsRasterHistogramWidget::QgsRasterHistogramWidget | ( | QgsRasterLayer * | lyr, |
QWidget * | parent = 0 |
||
) |
Definition at line 57 of file qgsrasterhistogramwidget.cpp.
QgsRasterHistogramWidget::~QgsRasterHistogramWidget | ( | ) |
Definition at line 245 of file qgsrasterhistogramwidget.cpp.
bool QgsRasterHistogramWidget::computeHistogram | ( | bool | forceComputeFlag | ) |
Compute the histogram on demand.
Definition at line 283 of file qgsrasterhistogramwidget.cpp.
void QgsRasterHistogramWidget::histoAction | ( | const QString & | actionName, |
bool | actionFlag = true |
||
) |
Apply a histoActionTriggered() event.
Definition at line 787 of file qgsrasterhistogramwidget.cpp.
bool QgsRasterHistogramWidget::histoSaveAsImage | ( | const QString & | theFilename, |
int | width = 600 , |
||
int | height = 600 , |
||
int | quality = -1 |
||
) |
Save the histogram as an image to disk.
Definition at line 698 of file qgsrasterhistogramwidget.cpp.
|
slot |
This slot lets you save the histogram as an image to disk.
Definition at line 683 of file qgsrasterhistogramwidget.cpp.
|
slot |
slot executed when user wishes to refresh raster histogramwidget
Definition at line 329 of file qgsrasterhistogramwidget.cpp.
void QgsRasterHistogramWidget::setActive | ( | bool | theActiveFlag | ) |
Activate the histogram widget.
Definition at line 257 of file qgsrasterhistogramwidget.cpp.
void QgsRasterHistogramWidget::setRendererWidget | ( | const QString & | name, |
QgsRasterRendererWidget * | rendererWidget = NULL |
||
) |
Set the renderer widget (or just its name if there is no widget)
Definition at line 249 of file qgsrasterhistogramwidget.cpp.
void QgsRasterHistogramWidget::setSelectedBand | ( | int | index | ) |
Apply a histoActionTriggered() event.
Definition at line 750 of file qgsrasterhistogramwidget.cpp.