OpenCPN Partial API docs
Loading...
Searching...
No Matches
wind.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2010 by Jean-Eudes Onfray *
3 * Copyright (C) 2010 by David S. Register *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
25#ifndef Wind_H_
26#define Wind_H_
27
28#include <wx/wxprec.h>
29
30#ifndef WX_PRECOMP
31#include <wx/wx.h>
32#endif
33
34#include "dial.h"
35
38public:
39 DashboardInstrument_Wind(wxWindow* parent, wxWindowID id, wxString title,
40 InstrumentProperties* Properties, DASH_CAP cap_flag);
41
42 ~DashboardInstrument_Wind() override = default;
43
44private:
45protected:
46 void DrawBackground(wxGCDC* dc) override;
47};
48
50public:
51 DashboardInstrument_WindCompass(wxWindow* parent, wxWindowID id,
52 wxString title,
53 InstrumentProperties* Properties,
54 DASH_CAP cap_flag);
55
56 ~DashboardInstrument_WindCompass() override = default;
57
58protected:
59 void DrawBackground(wxGCDC* dc) override;
60};
61
63public:
64 DashboardInstrument_TrueWindAngle(wxWindow* parent, wxWindowID id,
65 wxString title,
66 InstrumentProperties* Properties,
67 DASH_CAP cap_flag);
68
69 ~DashboardInstrument_TrueWindAngle() override = default;
70
71protected:
72 void DrawBackground(wxGCDC* dc) override;
73};
74/*****************************************************************************
75Apparent & True wind angle combined in one dial instrument
76Author: Thomas Rauch
77******************************************************************************/
79public:
80 DashboardInstrument_AppTrueWindAngle(wxWindow* parent, wxWindowID id,
81 wxString title,
82 InstrumentProperties* Properties,
83 DASH_CAP cap_flag);
84
85 ~DashboardInstrument_AppTrueWindAngle() override = default;
86 void SetData(DASH_CAP, double, wxString) override;
87
88private:
89protected:
90 double m_MainValueApp, m_MainValueTrue;
91 double m_ExtraValueApp, m_ExtraValueTrue;
92
93 wxString m_ExtraValueAppUnit, m_ExtraValueTrueUnit, m_MainValueAppUnit,
94 m_MainValueTrueUnit;
95 DialPositionOption m_MainValueOption1, m_MainValueOption2,
96 m_ExtraValueOption1, m_ExtraValueOption2;
97 void DrawBackground(wxGCDC* dc) override;
98 void Draw(wxGCDC* dc) override;
99 void DrawForeground(wxGCDC* dc) override;
100 void DrawData(wxGCDC* dc, double value, wxString unit, wxString format,
101 DialPositionOption position) override;
102};
103
104#endif // Wind_H_
A wind style control.
Definition wind.h:37
Dashboard dial instrument.
DASH_CAP
Definition instrument.h:77