Isis 3 Developer Reference
QHistogram.h
Go to the documentation of this file.
1 #ifndef QHistogram_h
2 #define QHistogram_h
3 
25 #include "Histogram.h"
26 #include <QWidget>
27 #include <QMenu>
28 #include <qwt_plot.h>
29 #include <qwt_plot_zoomer.h>
30 #include <qwt_plot_curve.h>
31 
32 namespace Isis {
47  class QHistogram: public QwtPlot {
48  Q_OBJECT
49 
50  public:
51  QHistogram(QWidget *parent = NULL);
52 
55 
56  void Load(Histogram &hist);
57 
58  public slots:
59  void trackerEnabled();
60  void cdfCurveVisible();
61  void printPlot();
62  void savePlot();
63  void switchBackground();
64  void showHelp();
65 
66  private:
67  QwtPlotZoomer *p_zoomer;
68  QwtPlotCurve *p_histCurve;
69  QwtPlotCurve *p_cdfCurve;
70  };
71 };
72 
73 #endif
QHistogram(QWidget *parent=NULL)
Constructs a QHistogram object with default titles.
Definition: QHistogram.cpp:47
void trackerEnabled()
Enables mouse tracking on the plot.
Definition: QHistogram.cpp:119
void showHelp()
Provides help text in a dialog box.
Definition: QHistogram.cpp:217
Plot Histograms.
Definition: QHistogram.h:47
void cdfCurveVisible()
Hide/show the cdf curve.
Definition: QHistogram.cpp:133
Container of a cube histogram.
Definition: Histogram.h:86
~QHistogram()
Destroys the QHistogram object.
Definition: QHistogram.h:54
void printPlot()
Provide printing capabilities.
Definition: QHistogram.cpp:143
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void switchBackground()
Switches the plot background color between black and white.
Definition: QHistogram.cpp:196
void Load(Histogram &hist)
Plots the given Isis Histogram in the plot window.
Definition: QHistogram.cpp:77
void savePlot()
Allows user to save the plot to an image file.
Definition: QHistogram.cpp:174