Isis 3 Programmer Reference
PlotWindowBestFitDialog.h
1 #ifndef PlotWindowBestFitDialog_h
2 #define PlotWindowBestFitDialog_h
3 
4 #include <QDialog>
5 
6 #include <QPointer>
7 
9 #include "PlotWindow.h"
10 
11 class QwtPlotSpectrogram;
12 
13 class QCheckBox;
14 class QComboBox;
15 class QLabel;
16 class QLineEdit;
17 class QPushButton;
18 class QWidget;
19 
20 namespace Isis {
31  Q_OBJECT
32 
33  public:
34  PlotWindowBestFitDialog(PlotWindow *windowWithCurves, QWidget *parent);
35  virtual ~PlotWindowBestFitDialog();
36 
37  public slots:
38  void createBestFitLine();
39  void readCurvesFromWindow();
40 
41  private slots:
42  void refreshWidgetStates();
43 
44  private:
46  QwtPlotSpectrogram *selectedSpectrogram();
47 
54 
62  const PlotWindowBestFitDialog &other);
63 
64  private:
66  QPointer<QComboBox> m_curvesCombo;
68  QPointer<QLabel> m_equationLabel;
70  QPointer<QLabel> m_correlationLabel;
72  QPointer<QLabel> m_determinationLabel;
78  QPointer<QPushButton> m_okayButton;
79 
81  QPointer<PlotWindow> m_plotWindowWithCurves;
82 
84  QScopedPointer<MultivariateStatistics> m_curveMultivariateStats;
85  };
86 }
87 
88 #endif
PlotWindowBestFitDialog(PlotWindow *windowWithCurves, QWidget *parent)
Create a PlotWindowBestFitDialog.
void createBestFitLine()
This is called when the user wants the best fit line.
void refreshWidgetStates()
This updates all of the widgets in this window&#39;s visibility and text data based on what the user has ...
QPointer< QLabel > m_correlationLabel
A label populated with the resulting correlation from a best fit.
QPointer< QComboBox > m_curvesCombo
A combo box for the user to select a curve/spectrogram to best fit.
QwtPlotSpectrogram * selectedSpectrogram()
If a spectrogram (scatter plot) is selected, this returns it.
QPointer< QPushButton > m_okayButton
The ok button which the user clicks to create the best fit curve.
QPointer< QLabel > m_equationLabel
A label populated with the resulting equation from a best fit.
This is a plot curve with information relating it to a particular cube or region of a cube...
Definition: CubePlotCurve.h:68
QPointer< QLabel > m_determinationLabel
A label populated with the resulting determination from a best fit.
CubePlotCurve * selectedCurve()
If a curve is selected, this returns it.
QPointer< PlotWindow > m_plotWindowWithCurves
The plot window we&#39;re creating a best for line for.
PlotWindowBestFitDialog & operator=(const PlotWindowBestFitDialog &other)
Assignments with this class are not allowed.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void readCurvesFromWindow()
This populates the curve selection combo with all of the available information inside of the PlotWind...
QScopedPointer< MultivariateStatistics > m_curveMultivariateStats
The MV stats which is doing our regression calculations.