OpenCPN Partial API docs
Loading...
Searching...
No Matches
from_ownship.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2010 by Pavel Kalian *
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 FROM_OWNSHIP_H_
26
#define FROM_OWNSHIP_H_
27
28
// For compilers that support precompilation, includes "wx/wx.h".
29
#include <wx/wxprec.h>
30
31
// for all others, include the necessary headers (this file is usually all you
32
// need because it includes almost all "standard" wxWidgets headers)
33
#ifndef WX_PRECOMP
34
#include <wx/wx.h>
35
#endif
36
37
#include "
instrument.h
"
38
39
class
DashboardInstrument_FromOwnship
:
public
DashboardInstrument
{
40
public
:
41
DashboardInstrument_FromOwnship
(wxWindow* pparent, wxWindowID
id
,
42
wxString title,
43
InstrumentProperties
* Properties,
44
DASH_CAP
cap_flag1 =
OCPN_DBP_STC_PLA
,
45
DASH_CAP
cap_flag2 =
OCPN_DBP_STC_PLO
,
46
DASH_CAP
cap_flag3 =
OCPN_DBP_STC_LAT
,
47
DASH_CAP
cap_flag4 =
OCPN_DBP_STC_LON
);
48
~DashboardInstrument_FromOwnship
()
override
=
default
;
49
50
void
SetData(
DASH_CAP
st,
double
data, wxString
unit
)
override
;
51
wxSize GetSize(
int
orient, wxSize hint)
override
;
52
53
protected
:
54
wxString m_data1;
55
wxString m_data2;
56
double
c_lat;
57
double
c_lon;
58
double
s_lat;
59
double
s_lon;
60
DASH_CAP
m_cap_flag1;
61
DASH_CAP
m_cap_flag2;
62
DASH_CAP
m_cap_flag3;
63
DASH_CAP
m_cap_flag4;
64
65
void
Draw(wxGCDC* dc)
override
;
66
};
67
68
#endif
// FROM_OWNSHIP_H_
DashboardInstrument_FromOwnship
Definition
from_ownship.h:39
DashboardInstrument
Definition
instrument.h:200
InstrumentProperties
Definition
instrument.h:128
instrument.h
Dashboard instrument base class.
DASH_CAP
DASH_CAP
Definition
instrument.h:77
OCPN_DBP_STC_PLA
@ OCPN_DBP_STC_PLA
Cursor latitude.
Definition
instrument.h:99
OCPN_DBP_STC_LON
@ OCPN_DBP_STC_LON
Longitude.
Definition
instrument.h:79
OCPN_DBP_STC_PLO
@ OCPN_DBP_STC_PLO
Cursor longitude.
Definition
instrument.h:100
OCPN_DBP_STC_LAT
@ OCPN_DBP_STC_LAT
Latitude.
Definition
instrument.h:78
unit
Definition
tc_data_factory.h:39
plugins
dashboard_pi
src
from_ownship.h
Generated on Mon Aug 17 2026 02:23:19 for OpenCPN Partial API docs by
1.9.8