46 void SetData(
DASH_CAP,
double, wxString)
override;
47 wxSize GetSize(
int orient, wxSize hint)
override;
51 int m_SpdRecCnt, m_DirRecCnt, m_SpdStartVal, m_DirStartVal;
57 double m_ArrayWindDirHistory[WIND_RECORD_COUNT];
58 double m_ArrayWindSpdHistory[WIND_RECORD_COUNT];
59 double m_ExpSmoothArrayWindSpd[WIND_RECORD_COUNT];
60 double m_ExpSmoothArrayWindDir[WIND_RECORD_COUNT];
61 wxDateTime::Tm m_ArrayRecTime[WIND_RECORD_COUNT];
65 double m_WindDirRange;
67 double m_TotalMaxWindSpd;
70 double m_MaxWindSpdScale;
75 wxString m_WindSpeedUnit;
77 int speedw, degw, degh;
80 wxRect m_DrawAreaRect;
81 int m_DrawingWidth, m_TopLineHeight, m_DrawingHeight;
82 int m_width, m_height;
83 int m_LeftLegend, m_RightLegend;
84 int m_currSec, m_lastSec, m_SpdCntperSec, m_DirCntperSec;
85 double m_cntSpd, m_cntDir, m_avgSpd, m_avgDir;
87 void Draw(wxGCDC* dc)
override;
88 void DrawBackground(wxGCDC* dc);
89 void DrawForeground(wxGCDC* dc);
90 void SetMinMaxWindScale();
91 void DrawWindDirScale(wxGCDC* dc);
92 void DrawWindSpeedScale(wxGCDC* dc);
94 wxString GetWindDirStr(wxString WindDir);