OpenCPN Partial API docs
Loading...
Searching...
No Matches
ocpn_types.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2010 by David S. Register *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#ifndef OCPNTYPES_H_
25#define OCPNTYPES_H_
26
27#include <wx/colour.h>
28
29// ChartType constants
30typedef enum ChartTypeEnum {
31 CHART_TYPE_UNKNOWN = 0,
32 CHART_TYPE_DUMMY,
33 CHART_TYPE_DONTCARE,
34 CHART_TYPE_KAP,
35 CHART_TYPE_GEO,
36 CHART_TYPE_S57,
37 CHART_TYPE_CM93,
38 CHART_TYPE_CM93COMP,
39 CHART_TYPE_PLUGIN,
40 CHART_TYPE_MBTILES
41} _ChartTypeEnum;
42
43// ChartFamily constants
44typedef enum ChartFamilyEnum {
45 CHART_FAMILY_UNKNOWN = 0,
46 CHART_FAMILY_RASTER,
47 CHART_FAMILY_VECTOR,
48 CHART_FAMILY_DONTCARE
49} _ChartFamilyEnum;
50
51//----------------------------------------------------------------------------
52// ocpn Toolbar stuff
53//----------------------------------------------------------------------------
54// class ChartBase;
55// class wxSocketEvent;
56// class ocpnToolBarSimple;
57
68typedef struct {
75 double kLat;
76
83 double kLon;
84
86 double kCog;
87
92 double kSog;
93
98 double kVar;
99
104 double kHdm;
105
111 double kHdt;
112
118 time_t FixTime;
119
126 int nSats;
128
129// A collection of active leg Data structure
130typedef struct {
131 double Xte; // Left side of the track -> negative XTE
132 double Btw;
133 double Dtw;
134 wxString wp_name; // Name of destination waypoint for active leg;
135 bool arrival;
137
138#endif // OCPNTYPES_H_
A generic position and navigation data structure.
Definition ocpn_types.h:68
double kCog
Course over ground in degrees.
Definition ocpn_types.h:86
double kHdt
True heading in degrees.
Definition ocpn_types.h:111
int nSats
Number of satellites used in the fix.
Definition ocpn_types.h:126
double kHdm
Magnetic heading in degrees.
Definition ocpn_types.h:104
time_t FixTime
UTC time of fix.
Definition ocpn_types.h:118
double kLat
Latitude in decimal degrees.
Definition ocpn_types.h:75
double kSog
Speed over ground in knots.
Definition ocpn_types.h:92
double kVar
Magnetic variation in degrees.
Definition ocpn_types.h:98
double kLon
Longitude in decimal degrees.
Definition ocpn_types.h:83