Isis 3 Programmer Reference
QHistogram.h
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;
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
Isis::QHistogram::p_zoomer
QwtPlotZoomer * p_zoomer
Plot Zoomer.
Definition: QHistogram.h:54
QWidget
Isis::QHistogram::trackerEnabled
void trackerEnabled()
Enables mouse tracking on the plot.
Definition: QHistogram.cpp:105
Isis::QHistogram::switchBackground
void switchBackground()
Switches the plot background color between black and white.
Definition: QHistogram.cpp:182
Isis::QHistogram::savePlot
void savePlot()
Allows user to save the plot to an image file.
Definition: QHistogram.cpp:160
Isis::QHistogram
Plot Histograms.
Definition: QHistogram.h:34
Isis::QHistogram::p_histCurve
QwtPlotCurve * p_histCurve
Historgram plot curve.
Definition: QHistogram.h:55
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
Container of a cube histogram.
Definition: Histogram.h:74
Isis::QHistogram::~QHistogram
~QHistogram()
Destroys the QHistogram object.
Definition: QHistogram.h:41
Isis::QHistogram::p_cdfCurve
QwtPlotCurve * p_cdfCurve
CDF plot curve.
Definition: QHistogram.h:56
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