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
11class QwtPlotSpectrogram;
12
13class QCheckBox;
14class QComboBox;
15class QLabel;
16class QLineEdit;
17class QPushButton;
18class QWidget;
19
20namespace Isis {
31 Q_OBJECT
32
33 public:
34 PlotWindowBestFitDialog(PlotWindow *windowWithCurves, QWidget *parent);
36
37 public slots:
38 void createBestFitLine();
40
41 private slots:
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
This is a plot curve with information relating it to a particular cube or region of a cube.
QPointer< QLabel > m_equationLabel
A label populated with the resulting equation from a best fit.
QPointer< PlotWindow > m_plotWindowWithCurves
The plot window we're creating a best for line for.
QPointer< QLabel > m_correlationLabel
A label populated with the resulting correlation from a best fit.
PlotWindowBestFitDialog & operator=(const PlotWindowBestFitDialog &other)
Assignments with this class are not allowed.
PlotWindowBestFitDialog(PlotWindow *windowWithCurves, QWidget *parent)
Create a PlotWindowBestFitDialog.
QPointer< QPushButton > m_okayButton
The ok button which the user clicks to create the best fit curve.
QPointer< QComboBox > m_curvesCombo
A combo box for the user to select a curve/spectrogram to best fit.
PlotWindowBestFitDialog(const PlotWindowBestFitDialog &other)
Copy constructing this class is disabled.
void createBestFitLine()
This is called when the user wants the best fit line.
QScopedPointer< MultivariateStatistics > m_curveMultivariateStats
The MV stats which is doing our regression calculations.
void readCurvesFromWindow()
This populates the curve selection combo with all of the available information inside of the PlotWind...
QwtPlotSpectrogram * selectedSpectrogram()
If a spectrogram (scatter plot) is selected, this returns it.
void refreshWidgetStates()
This updates all of the widgets in this window's visibility and text data based on what the user has ...
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.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16