Isis Developer Reference
QHistogram.h
Go to the documentation of this file.
1 #ifndef QHistogram_h
2 #define QHistogram_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "Histogram.h"
13 #include <QWidget>
14 #include <QMenu>
15 #include <qwt_plot.h>
16 #include <qwt_plot_zoomer.h>
17 #include <qwt_plot_curve.h>
18 
19 namespace Isis {
34  class QHistogram: public QwtPlot {
35  Q_OBJECT
36 
37  public:
38  QHistogram(QWidget *parent = NULL);
39 
42 
43  void Load(Histogram &hist);
44 
45  public slots:
46  void trackerEnabled();
47  void cdfCurveVisible();
48  void printPlot();
49  void savePlot();
50  void switchBackground();
51  void showHelp();
52 
53  private:
54  QwtPlotZoomer *p_zoomer;
55  QwtPlotCurve *p_histCurve;
56  QwtPlotCurve *p_cdfCurve;
57  };
58 };
59 
60 #endif
QwtPlot
Isis::QHistogram::cdfCurveVisible
void cdfCurveVisible()
Hide/show the cdf curve.
Definition: QHistogram.cpp:119
Isis::QHistogram::QHistogram
QHistogram(QWidget *parent=NULL)
Constructs a QHistogram object with default titles.
Definition: QHistogram.cpp:33
QWidget
Histogram.h
Isis::QHistogram::trackerEnabled
void trackerEnabled()
Enables mouse tracking on the plot.
Definition: QHistogram.cpp:105
Isis::Histogram::BinMiddle
double BinMiddle(const int index) const
Returns the value represented by a bin.
Definition: Histogram.cpp:449
Isis::QHistogram::switchBackground
void switchBackground()
Switches the plot background color between black and white.
Definition: QHistogram.cpp:182
Isis::Statistics::ValidPixels
BigInt ValidPixels() const
Returns the total number of valid pixels processed.
Definition: Statistics.cpp:433
Isis::QHistogram::savePlot
void savePlot()
Allows user to save the plot to an image file.
Definition: QHistogram.cpp:160
QHistogram.h
Isis::QHistogram
Plot Histograms.
Definition: QHistogram.h:34
Isis::Histogram::BinCount
BigInt BinCount(const int index) const
Returns the count at a bin position in the histogram.
Definition: Histogram.cpp:403
Isis::QHistogram::showHelp
void showHelp()
Provides help text in a dialog box.
Definition: QHistogram.cpp:203
QwtPlotCurve
Isis::QHistogram::printPlot
void printPlot()
Provide printing capabilities.
Definition: QHistogram.cpp:129
Isis::Histogram::Bins
int Bins() const
Returns the number of bins in the histogram.
Definition: Histogram.cpp:483
IException.h
std
Namespace for the standard library.
Isis::Histogram
Container of a cube histogram.
Definition: Histogram.h:74
Isis::QHistogram::~QHistogram
~QHistogram()
Destroys the QHistogram object.
Definition: QHistogram.h:41
QDialog
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Isis::QHistogram::Load
void Load(Histogram &hist)
Plots the given Isis Histogram in the plot window.
Definition: QHistogram.cpp:63
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16