-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathRealTimeRoute.h
70 lines (47 loc) · 1.35 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
68
69
70
#pragma once
#ifndef _REALTIMEROUTE_
#define _REALTIMEROUTE_
#include "RouteGraph.h"
#include "afxwin.h"
class CSpectrometer;
// CRealTimeRoute dialog
namespace Dialogs
{
class CRealTimeRoute : public CDialog
{
DECLARE_DYNAMIC(CRealTimeRoute)
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:
bool fVisible;
double m_intensityLimit; // points with intensity below 'm_intensityLimit' will not be shown
CSpectrometer* m_spectrometer;
virtual BOOL OnInitDialog();
/* 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();
private:
long m_pointNum;
std::vector<double> m_lon;
std::vector<double> m_lat;
std::vector<double> m_col;
std::vector<double> m_int;
struct plotRange m_range;
double m_srcLat;
double m_srcLon;
CStatic m_plotArea;
int m_legendWidth;
};
}
#endif