Isis 3.0 Developer's Reference (API) |
Home |
00001 #ifndef PlotWindowBestFitDialog_h 00002 #define PlotWindowBestFitDialog_h 00003 00004 #include <QDialog> 00005 00006 #include <QPointer> 00007 00008 #include "MultivariateStatistics.h" 00009 #include "PlotWindow.h" 00010 00011 class QwtPlotSpectrogram; 00012 00013 class QCheckBox; 00014 class QComboBox; 00015 class QLineEdit; 00016 class QPushButton; 00017 class QWidget; 00018 00019 namespace Isis { 00025 class PlotWindowBestFitDialog : public QDialog { 00026 Q_OBJECT 00027 00028 public: 00029 PlotWindowBestFitDialog(PlotWindow *windowWithCurves, QWidget *parent); 00030 virtual ~PlotWindowBestFitDialog(); 00031 00032 public slots: 00033 void createBestFitLine(); 00034 void readCurvesFromWindow(); 00035 00036 private slots: 00037 void refreshWidgetStates(); 00038 00039 private: 00040 CubePlotCurve *selectedCurve(); 00041 QwtPlotSpectrogram *selectedSpectrogram(); 00042 00043 PlotWindowBestFitDialog(const PlotWindowBestFitDialog &other); 00044 PlotWindowBestFitDialog &operator=( 00045 const PlotWindowBestFitDialog &other); 00046 00047 private: 00048 QPointer<QComboBox> m_curvesCombo; 00049 QPointer<QLabel> m_equationLabel; 00050 QPointer<QLabel> m_correlationLabel; 00051 QPointer<QLabel> m_determinationLabel; 00052 QPointer<QPushButton> m_okayButton; 00053 00054 QPointer<PlotWindow> m_plotWindowWithCurves; 00055 00056 QScopedPointer<MultivariateStatistics> m_curveMultivariateStats; 00057 }; 00058 } 00059 00060 #endif