Isis 3 Programmer Reference
PlotWindowBestFitDialog.h
1 #ifndef PlotWindowBestFitDialog_h
2 #define PlotWindowBestFitDialog_h
3 
4 #include <QDialog>
5 
6 #include <QPointer>
7 
8 #include "MultivariateStatistics.h"
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
Isis::PlotWindowBestFitDialog::m_curvesCombo
QPointer< QComboBox > m_curvesCombo
A combo box for the user to select a curve/spectrogram to best fit.
Definition: PlotWindowBestFitDialog.h:66
QWidget
Isis::CubePlotCurve
This is a plot curve with information relating it to a particular cube or region of a cube.
Definition: CubePlotCurve.h:53
Isis::PlotWindowBestFitDialog::createBestFitLine
void createBestFitLine()
This is called when the user wants the best fit line.
Definition: PlotWindowBestFitDialog.cpp:112
Isis::PlotWindowBestFitDialog::operator=
PlotWindowBestFitDialog & operator=(const PlotWindowBestFitDialog &other)
Assignments with this class are not allowed.
Isis::PlotWindowBestFitDialog::m_okayButton
QPointer< QPushButton > m_okayButton
The ok button which the user clicks to create the best fit curve.
Definition: PlotWindowBestFitDialog.h:78
PlotWindow.h
QComboBox
Isis::PlotWindowBestFitDialog::m_plotWindowWithCurves
QPointer< PlotWindow > m_plotWindowWithCurves
The plot window we're creating a best for line for.
Definition: PlotWindowBestFitDialog.h:81
Isis::PlotWindowBestFitDialog
Definition: PlotWindowBestFitDialog.h:30
Isis::PlotWindowBestFitDialog::m_curveMultivariateStats
QScopedPointer< MultivariateStatistics > m_curveMultivariateStats
The MV stats which is doing our regression calculations.
Definition: PlotWindowBestFitDialog.h:84
Isis::PlotWindowBestFitDialog::m_correlationLabel
QPointer< QLabel > m_correlationLabel
A label populated with the resulting correlation from a best fit.
Definition: PlotWindowBestFitDialog.h:70
Isis::PlotWindowBestFitDialog::selectedCurve
CubePlotCurve * selectedCurve()
If a curve is selected, this returns it.
Definition: PlotWindowBestFitDialog.cpp:308
Isis::PlotWindowBestFitDialog::PlotWindowBestFitDialog
PlotWindowBestFitDialog(PlotWindow *windowWithCurves, QWidget *parent)
Create a PlotWindowBestFitDialog.
Definition: PlotWindowBestFitDialog.cpp:33
Isis::PlotWindowBestFitDialog::m_determinationLabel
QPointer< QLabel > m_determinationLabel
A label populated with the resulting determination from a best fit.
Definition: PlotWindowBestFitDialog.h:72
Isis::PlotWindowBestFitDialog::refreshWidgetStates
void refreshWidgetStates()
This updates all of the widgets in this window's visibility and text data based on what the user has ...
Definition: PlotWindowBestFitDialog.cpp:230
Isis::PlotWindowBestFitDialog::PlotWindowBestFitDialog
PlotWindowBestFitDialog(const PlotWindowBestFitDialog &other)
Copy constructing this class is disabled.
QDialog
Isis::PlotWindow
Definition: PlotWindow.h:88
Isis::PlotWindowBestFitDialog::readCurvesFromWindow
void readCurvesFromWindow()
This populates the curve selection combo with all of the available information inside of the PlotWind...
Definition: PlotWindowBestFitDialog.cpp:203
Isis::PlotWindowBestFitDialog::selectedSpectrogram
QwtPlotSpectrogram * selectedSpectrogram()
If a spectrogram (scatter plot) is selected, this returns it.
Definition: PlotWindowBestFitDialog.cpp:334
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::PlotWindowBestFitDialog::m_equationLabel
QPointer< QLabel > m_equationLabel
A label populated with the resulting equation from a best fit.
Definition: PlotWindowBestFitDialog.h:68