OpenCPN Partial API docs
Loading...
Searching...
No Matches
ocpn_types.h
1
/******************************************************************************
2
*
3
* Project: OpenCPN
4
* Purpose: OpenCPN private types and ENUMs
5
* Author: David Register
6
*
7
***************************************************************************
8
* Copyright (C) 2010 by David S. Register *
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
* This program is distributed in the hope that it will be useful, *
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18
* GNU General Public License for more details. *
19
* *
20
* You should have received a copy of the GNU General Public License *
21
* along with this program; if not, write to the *
22
* Free Software Foundation, Inc., *
23
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
24
***************************************************************************
25
*
26
*
27
*
28
*/
29
30
#ifndef _OCPNTYPES_H__
31
#define _OCPNTYPES_H__
32
33
#include <wx/colour.h>
34
35
// ChartType constants
36
typedef
enum
ChartTypeEnum {
37
CHART_TYPE_UNKNOWN = 0,
38
CHART_TYPE_DUMMY,
39
CHART_TYPE_DONTCARE,
40
CHART_TYPE_KAP,
41
CHART_TYPE_GEO,
42
CHART_TYPE_S57,
43
CHART_TYPE_CM93,
44
CHART_TYPE_CM93COMP,
45
CHART_TYPE_PLUGIN,
46
CHART_TYPE_MBTILES
47
} _ChartTypeEnum;
48
49
// ChartFamily constants
50
typedef
enum
ChartFamilyEnum {
51
CHART_FAMILY_UNKNOWN = 0,
52
CHART_FAMILY_RASTER,
53
CHART_FAMILY_VECTOR,
54
CHART_FAMILY_DONTCARE
55
} _ChartFamilyEnum;
56
57
//----------------------------------------------------------------------------
58
// ocpn Toolbar stuff
59
//----------------------------------------------------------------------------
60
class
ChartBase
;
61
class
wxSocketEvent;
62
class
ocpnToolBarSimple
;
63
64
// A generic Position Data structure
65
typedef
struct
{
66
double
kLat;
67
double
kLon;
68
double
kCog;
69
double
kSog;
70
double
kVar;
// Variation, typically from RMC message
71
double
kHdm;
// Magnetic heading
72
double
kHdt;
// true heading
73
time_t FixTime;
74
int
nSats;
75
}
GenericPosDatEx
;
76
77
// A collection of active leg Data structure
78
typedef
struct
{
79
double
Xte;
// Left side of the track -> negative XTE
80
double
Btw;
81
double
Dtw;
82
wxString wp_name;
// Name of destination waypoint for active leg;
83
bool
arrival;
84
}
ActiveLegDat
;
85
86
#endif
// _OCPNTYPES_H__
ChartBase
Base class for all chart types.
Definition
chartbase.h:119
ocpnToolBarSimple
Generic toolbar implementation in pure wxWidgets adapted from wxToolBarSimple (deprecated).
Definition
toolbar.h:103
ActiveLegDat
Definition
ocpn_types.h:78
GenericPosDatEx
Definition
ocpn_types.h:65
model
include
model
ocpn_types.h
Generated on Sat Mar 1 2025 02:28:51 for OpenCPN Partial API docs by
1.9.8