OpenCPN Partial API docs
Loading...
Searching...
No Matches
compass.h
1/******************************************************************************
2 * $Id: compass.h, v1.0 2010/08/05 SethDart Exp $
3 *
4 * Project: OpenCPN
5 * Purpose: Dashboard Plugin
6 * Author: Jean-Eudes Onfray
7 * (Inspired by original work from Andreas Heiming)
8 *
9 ***************************************************************************
10 * Copyright (C) 2010 by David S. Register *
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 * This program is distributed in the hope that it will be useful, *
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
20 * GNU General Public License for more details. *
21 * *
22 * You should have received a copy of the GNU General Public License *
23 * along with this program; if not, write to the *
24 * Free Software Foundation, Inc., *
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
26 ***************************************************************************
27 */
28
29#ifndef __Compass_H__
30#define __Compass_H__
31
32// For compilers that support precompilation, includes "wx/wx.h".
33#include <wx/wxprec.h>
34
35#ifdef __BORLANDC__
36#pragma hdrstop
37#endif
38
39// for all others, include the necessary headers (this file is usually all you
40// need because it includes almost all "standard" wxWidgets headers)
41#ifndef WX_PRECOMP
42#include <wx/wx.h>
43#endif
44
45#include "dial.h"
46
47//+------------------------------------------------------------------------------
48//|
49//| CLASS:
50//| DashboardInstrument_Compass
51//|
52//| DESCRIPTION:
53//| This class creates a compass style control
54//|
55//+------------------------------------------------------------------------------
57public:
58 DashboardInstrument_Compass(wxWindow* parent, wxWindowID id, wxString title,
59 InstrumentProperties* Properties,
60 DASH_CAP cap_flag);
61
63
64 void SetData(DASH_CAP, double, wxString);
65
66private:
67protected:
68 void DrawBackground(wxGCDC* dc);
69 void DrawForeground(wxGCDC* dc);
70};
71
72#endif // __Compass_H__