]> git.mxchange.org Git - flightgear.git/blob - src/Cockpit/hud_dnst.cxx
One more pass at a reorg.
[flightgear.git] / src / Cockpit / hud_dnst.cxx
1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4
5 #ifdef HAVE_WINDOWS_H
6 #  include <windows.h>
7 #endif
8
9 #include <stdlib.h>
10 #include <string.h>
11
12 #include <simgear/constants.h>
13 #include <simgear/math/fg_random.h>
14 #include <simgear/math/mat3.h>
15 #include <simgear/math/polar3d.hxx>
16
17 #include <Aircraft/aircraft.hxx>
18 #include <Scenery/scenery.hxx>
19 #include <Time/fg_timer.hxx>
20
21 #include "hud.hxx"
22
23      
24 //============ Top of dual_instr_item class member definitions ============
25
26 dual_instr_item ::
27   dual_instr_item ( int          x,
28                     int          y,
29                     UINT         width,
30                     UINT         height,
31                     FLTFNPTR     chn1_source,
32                     FLTFNPTR     chn2_source,
33                     bool         working,
34                     UINT         options ):
35                   instr_item( x, y, width, height,
36                               chn1_source, options, working),
37                   alt_data_source( chn2_source )
38 {
39 }
40
41 dual_instr_item ::
42   dual_instr_item( const dual_instr_item & image) :
43                  instr_item ((instr_item &) image ),
44                  alt_data_source( image.alt_data_source)
45 {
46 }
47
48 dual_instr_item & dual_instr_item ::
49   operator = (const dual_instr_item & rhs )
50 {
51   if( !(this == &rhs)) {
52     instr_item::operator = (rhs);
53     alt_data_source = rhs.alt_data_source;
54     }
55   return *this;
56 }
57
58 // End of hud_dnst.cxx
59