Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Widget for displaying Histograms. More...
#include <QmitkHistogramVisualizationWidget.h>
Signals | |
void | RequestHistogramUpdate (unsigned int nBins) |
Signal to be emitted when the number of bins is changed by the user. The HistogramCalculator should connect to this signal and recalculate the data accordingly. More... | |
Public Member Functions | |
QmitkHistogramVisualizationWidget (QWidget *parent=nullptr) | |
void | SetHistogram (itk::Statistics::Histogram< double >::ConstPointer histogram, const std::string &dataLabel) |
Draws the histogram and enables the GUI elements. More... | |
void | Reset () |
Clears the histogram and disables all GUI elements. More... | |
void | SetTheme (QmitkChartWidget::ColorTheme style) |
Sets the theme (either dark or light) More... | |
void | ResetDefault () |
Resets the default settings. More... | |
int | GetBins () |
Gets the number of bins to calculate. More... | |
Widget for displaying Histograms.
Definition at line 25 of file QmitkHistogramVisualizationWidget.h.
QmitkHistogramVisualizationWidget::QmitkHistogramVisualizationWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 17 of file QmitkHistogramVisualizationWidget.cpp.
int QmitkHistogramVisualizationWidget::GetBins | ( | ) |
Gets the number of bins to calculate.
Definition at line 48 of file QmitkHistogramVisualizationWidget.cpp.
|
signal |
Signal to be emitted when the number of bins is changed by the user. The HistogramCalculator should connect to this signal and recalculate the data accordingly.
Referenced by SetTheme().
void QmitkHistogramVisualizationWidget::Reset | ( | void | ) |
Clears the histogram and disables all GUI elements.
Definition at line 42 of file QmitkHistogramVisualizationWidget.cpp.
void QmitkHistogramVisualizationWidget::ResetDefault | ( | ) |
Resets the default settings.
Definition at line 52 of file QmitkHistogramVisualizationWidget.cpp.
void QmitkHistogramVisualizationWidget::SetHistogram | ( | itk::Statistics::Histogram< double >::ConstPointer | histogram, |
const std::string & | dataLabel | ||
) |
Draws the histogram and enables the GUI elements.
Definition at line 28 of file QmitkHistogramVisualizationWidget.cpp.
References QmitkChartWidget::bar.
void QmitkHistogramVisualizationWidget::SetTheme | ( | QmitkChartWidget::ColorTheme | style | ) |
Sets the theme (either dark or light)
Definition at line 60 of file QmitkHistogramVisualizationWidget.cpp.
References max(), min(), and RequestHistogramUpdate().