forked from NOVACProject/MobileDOAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RealTimeRoute.h
67 lines (48 loc) · 1.48 KB
/
RealTimeRoute.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
62
63
64
65
66
67
#pragma once
#ifndef _REALTIMEROUTE_
#define _REALTIMEROUTE_
#include "RouteGraph.h"
#include "Common.h"
#include "afxwin.h"
#include "Spectrometer.h"
// CRealTimeRoute dialog
namespace Dialogs
{
class CRealTimeRoute : public CDialog {
DECLARE_DYNAMIC(CRealTimeRoute)
private:
CStatic m_plotArea;
int m_legendWidth;
public:
CRealTimeRoute(CWnd* pParent = nullptr); // standard constructor
virtual ~CRealTimeRoute();
// Dialog Data
enum { IDD = IDD_REALTIME_ROUTE_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
/* the plot */
::Graph::CRouteGraph m_gpsPlot;
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
bool fVisible;
CSpectrometer *m_spectrometer;
long m_pointNum;
double m_lon[65536]; // TODO: Convert this to std::vector
double m_lat[65536]; // TODO: Convert this to std::vector
double m_col[65536]; // TODO: Convert this to std::vector
double m_colmax;
double m_colmin;
double m_int[65536]; // TODO: Convert this to std::vector
struct plotRange m_range;
double m_srcLat, m_srcLon;
double m_intensityLimit; // points with intensity below 'm_intensityLimit' will not be shown
/* Plotting the data */
void DrawRouteGraph();
void ReadData();
afx_msg void OnSize(UINT nType, int cx, int cy);
virtual BOOL Create(UINT nID, CWnd* pParentWnd = nullptr);
afx_msg void OnClose();
};
}
#endif