forked from NOVACProject/MobileDOAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShowFitDlg.h
61 lines (39 loc) · 1.1 KB
/
ShowFitDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include "Graphs/GraphCtrl.h"
#include "Common.h"
#include "Spectrometer.h"
// CShowFitDlg dialog
namespace Dialogs
{
class CShowFitDlg : public CDialog
{
DECLARE_DYNAMIC(CShowFitDlg)
public:
CShowFitDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CShowFitDlg();
// Dialog Data
enum { IDD = IDD_VIEW_FIT_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
double pixel[MAX_SPECTRUM_LENGTH];
/* the plot */
Graph::CGraphCtrl m_fitPlot;
Graph::CGraphCtrl m_fitPlot2;
public:
/** Called when the dialog is opened */
virtual BOOL OnInitDialog();
/** True if the plot is shown */
bool fVisible;
/** A pointer to the spectrometer in question. */
CSpectrometer *m_spectrometer;
afx_msg void OnSize(UINT nType, int cx, int cy);
virtual BOOL Create(UINT nID, CWnd* pParentWnd = NULL);
afx_msg void OnClose();
/** The actual drawing of the fit */
void DrawFit();
protected:
void DrawFit1();
void DrawFit2();
};
}