Isis 3 Programmer 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;
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
QwtPlotCurve * p_histCurve
Historgram plot curve.
Definition: QHistogram.h:68
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
QwtPlotZoomer * p_zoomer
Plot Zoomer.
Definition: QHistogram.h:67
Container of a cube histogram.
Definition: Histogram.h:86
QwtPlotCurve * p_cdfCurve
CDF plot curve.
Definition: QHistogram.h:69
~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