44DashboardInstrument_Compass::DashboardInstrument_Compass(
45 wxWindow* parent, wxWindowID
id, wxString title,
49 SetOptionMarker(5, DIAL_MARKER_SIMPLE, 2);
50 SetOptionLabel(20, DIAL_LABEL_ROTATED);
51 SetOptionMainValue(_T(
"%.0f"), DIAL_POSITION_INSIDE);
54void DashboardInstrument_Compass::SetData(DASH_CAP st,
double data,
58 if (std::isnan(data)) m_gpsWD =
true;
60 if (st == m_MainValueCap) {
65 m_MainValueUnit =
unit;
66 }
else if (st == m_ExtraValueCap) {
68 m_ExtraValueUnit =
unit;
73void DashboardInstrument_Compass::DrawBackground(wxGCDC* dc) {
74 DrawBoat(dc, m_cx, m_cy, m_radius);
76 DrawCompassRose(dc, m_cx, m_cy, 0.7 * m_radius, m_AngleStart,
true,
80void DashboardInstrument_Compass::DrawForeground(wxGCDC* dc) {