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
19namespace 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
Container of a cube histogram.
Definition Histogram.h:74
Plot Histograms.
Definition QHistogram.h:34
void savePlot()
Allows user to save the plot to an image file.
Definition QHistogram.cpp:163
QHistogram(QWidget *parent=NULL)
Constructs a QHistogram object with default titles.
Definition QHistogram.cpp:35
void showHelp()
Provides help text in a dialog box.
Definition QHistogram.cpp:206
void cdfCurveVisible()
Hide/show the cdf curve.
Definition QHistogram.cpp:121
void printPlot()
Provide printing capabilities.
Definition QHistogram.cpp:131
void switchBackground()
Switches the plot background color between black and white.
Definition QHistogram.cpp:185
void trackerEnabled()
Enables mouse tracking on the plot.
Definition QHistogram.cpp:107
~QHistogram()
Destroys the QHistogram object.
Definition QHistogram.h:41
void Load(Histogram &hist)
Plots the given Isis Histogram in the plot window.
Definition QHistogram.cpp:65
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16