]> git.mxchange.org Git - flightgear.git/blob - src/Cockpit/built_in/FGMagRibbon.hxx
Merge branch 'jmt/gps'
[flightgear.git] / src / Cockpit / built_in / FGMagRibbon.hxx
1 //  FGMagRibbon.hxx - Built-in layer for the magnetic compass ribbon layer.
2 //
3 //  Written by David Megginson, started January 2000.
4 //
5 //  This program is free software; you can redistribute it and/or
6 //  modify it under the terms of the GNU General Public License as
7 //  published by the Free Software Foundation; either version 2 of the
8 //  License, or (at your option) any later version.
9 // 
10 //  This program is distributed in the hope that it will be useful, but
11 //  WITHOUT ANY WARRANTY; without even the implied warranty of
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 //  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, write to the Free Software
17 //  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 //
19 //  $Id$
20
21 #ifndef __FG_MAG_RIBBON_HXX
22 #define __FG_MAG_RIBBON_HXX
23
24 #include <Main/fg_props.hxx>
25 #include "../panel.hxx"
26
27 ////////////////////////////////////////////////////////////////////////
28 // Built-in layer for the magnetic compass ribbon layer.
29 ////////////////////////////////////////////////////////////////////////
30
31 class FGMagRibbon : public FGTexturedLayer
32 {
33 public:
34     FGMagRibbon (int w, int h);
35     virtual ~FGMagRibbon () {}
36
37     virtual void draw (osg::State& state);
38
39 private:
40     SGPropertyNode_ptr _magcompass_node;
41 };
42
43 #endif // __FG_MAG_RIBBON_HXX
44
45 // end of FGMagRibbon.hxx