Debian Codegraph @

src/sonar.h

raw symbols SCIP
1 /***************************************************************************
2 Sonar.h - description
3 -------------------
4 begin : Fri Apr 11 2002
5 copyright : (C) 2002 by Michael Bridak
6 email : [email protected]
7 $Id: sonar.h,v 1.10 2003/09/20 22:53:15 mbridak Exp $
8 ***************************************************************************/
9
10 /***************************************************************************
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. *
15 * . *
16 * *
17 ***************************************************************************/
18
19 #ifndef SONAR_H
20 #define SONAR_Hcxx . . $ `src/sonar.h:20:9`!
21 /**
22 *@author Michael Bridak
23 */
24
25 class AnBqq5cxx . . $ AnBqq5#{
26 public:
27 Submarinecxx . . $ Submarine# *Subscxx . . $ AnBqq5#Subs.;
28 int cursorBearingcxx . . $ AnBqq5#cursorBearing.;
29 bool bearingdisplay5by6cxx . . $ AnBqq5#bearingdisplay5by6.;
30 bool arraychoice5by6cxx . . $ AnBqq5#arraychoice5by6.;
31 bool sonarwidgetcxx . . $ AnBqq5#sonarwidget.;
32 bool assigntrackercxx . . $ AnBqq5#assigntracker.;
33 float flowandambientnoisecxx . . $ AnBqq5#flowandambientnoise.;
34 AnBqq5cxx . . $ AnBqq5#AnBqq5(dceb0145a8cbd006).(Submarinecxx . . $ Submarine# *temp, TowedArraycxx . . $ TowedArray# &temp2, TargetMotionAnalysiscxx . . $ TargetMotionAnalysis# &temp3, msgcxx . . $ msg# &temp4);
35 ~cxx . . $ AnBqq5#`~AnBqq5`(ced63f7c635d850d).AnBqq5cxx . . $ AnBqq5#();
36
37 /** Initialize the graphic for this class, *screen is the main
38 display screen passed in from main. */
39
40 void InitGraphicscxx . . $ AnBqq5#InitGraphics(49f6e7a06ebc5aa8).();
41
42 inline void DPixelcxx . . $ AnBqq5#DPixel(6f3c846de5417090).(SDL_Surface *screen, int x, int y, Uint32cxx . . $ Uint32# color);
43
44 inline void DLinecxx . . $ AnBqq5#DLine(1738f3ac1892ed0c).(SDL_Surface *screen, int X1, int Y1, int X2, int Y2, Uint32cxx . . $ Uint32# Color);
45
46 void Sonarcxx . . $ AnBqq5#Sonar(b45ddcbc8423892c).(bool center);
47
48 void DisplaySonarcxx . . $ AnBqq5#DisplaySonar(49f6e7a06ebc5aa8).();
49
50 /** The Main entery point to do a gross update of all the Sonar
51 stations sub screen. */
52
53 void UpdateDisplaycxx . . $ AnBqq5#UpdateDisplay(a9ab5cc9dc811b12).(Submarinecxx . . $ Submarine# *target);
54 void ClearSonarDatacxx . . $ AnBqq5#ClearSonarData(49f6e7a06ebc5aa8).();
55
56 void TowedSonarcxx . . $ AnBqq5#TowedSonar(b45ddcbc8423892c).(bool center);
57
58 void AdvanceSonarDisplaycxx . . $ AnBqq5#AdvanceSonarDisplay(49f6e7a06ebc5aa8).();
59
60 void AdvanceTB16Screencxx . . $ AnBqq5#AdvanceTB16Screen(49f6e7a06ebc5aa8).();
61
62 /** Displays the degree bearing scale in the waterfall displays
63 the bool center flag is to chech if we want north (0 degree)
64 or south (180 degree) as the scales center. */
65
66 void DisplayBearingScalecxx . . $ AnBqq5#DisplayBearingScale(b45ddcbc8423892c).(bool center);
67
68 /** Loads in the widgets */
69
70 void LoadWidgetscxx . . $ AnBqq5#LoadWidgets(49f6e7a06ebc5aa8).();
71
72 /** Displays the widgets needed for the sonar display*/
73
74 void DisplaySonarWidgetscxx . . $ AnBqq5#DisplaySonarWidgets(49f6e7a06ebc5aa8).();
75
76 /** Switches the upper sonar waterfall display screen to show the
77 history of the Spherical array. */
78
79 void UpperCRT_Sphericalcxx . . $ AnBqq5#UpperCRT_Spherical(49f6e7a06ebc5aa8).();
80
81 /** Switches the lower sonar waterfall display screen to show the
82 history of the Spherical array. */
83
84 void LowerCRT_Sphericalcxx . . $ AnBqq5#LowerCRT_Spherical(49f6e7a06ebc5aa8).();
85
86 /** Switches the upper sonar waterfall display screen to show the
87 history of the TB16 array. */
88
89 void UpperCRT_TowedArraycxx . . $ AnBqq5#UpperCRT_TowedArray(49f6e7a06ebc5aa8).();
90
91 /** Switches the lower sonar waterfall display screen to show the
92 history of the TB16 array. */
93
94 void LowerCRT_TowedArraycxx . . $ AnBqq5#LowerCRT_TowedArray(49f6e7a06ebc5aa8).();
95
96 /** Toggles the bool variable arraychoice which affects the sonar
97 widget display and decided which array, Spherical or the towed
98 TB16, will appear when either the upper crt or lower crt widget
99 is clicked. */
100
101 void ToggleArrayChoicecxx . . $ AnBqq5#ToggleArrayChoice(49f6e7a06ebc5aa8).();
102
103 /** Toggles the truerel bool variable. At this time the only affect
104 it to the sonar widget display. But will soon determin if the
105 waterfall display shows us true or reletive traces. */
106
107 void ToggleTrueRelcxx . . $ AnBqq5#ToggleTrueRel(49f6e7a06ebc5aa8).();
108
109 /** Called when the user clickes the "Upper CRT" widget on the sonar
110 screen. When called, it will switch the upper waterfall display
111 to show the desired sonar sensors history. */
112
113 void UpperCRT_Buttoncxx . . $ AnBqq5#UpperCRT_Button(49f6e7a06ebc5aa8).();
114
115 /** Called when the user clickes the "Lower CRT" widget on the sonar
116 screen. When called, it will switch the lower waterfall display
117 to show the desired sonar sensors history. */
118
119 void LowerCRT_Buttoncxx . . $ AnBqq5#LowerCRT_Button(49f6e7a06ebc5aa8).();
120
121 /** Called when the user clicks on the assign tracker widget on the
122 sonar screen. Toggles the assigntracker bool variable. When the
123 flag is true, and the user clicks on one of the tracker widgets,
124 that tracker will be assigned to the sound source currently
125 under the sonar cursor. */
126
127 void ToggleAssignTrackercxx . . $ AnBqq5#ToggleAssignTracker(49f6e7a06ebc5aa8).();
128
129 bool GetNorthCenterStatecxx . . $ AnBqq5#GetNorthCenterState(c9857a73d68e59ba).();
130
131 void ToggleNorthCentercxx . . $ AnBqq5#ToggleNorthCenter(49f6e7a06ebc5aa8).();
132
133
134 /** Called when the user clicks on the "Stop TB16 Winch" widget on
135 the sonar screen. This unhighlights the widget and calls the
136 TB16.Stop() routine. */
137
138 void StopWinchcxx . . $ AnBqq5#StopWinch(49f6e7a06ebc5aa8).();
139
140 int RandIntcxx . . $ AnBqq5#RandInt(7864480464b09eea).(int TO);
141
142 int ReciprocalBearingcxx . . $ AnBqq5#ReciprocalBearing(7864480464b09eea).(int bearing);
143
144 void DisplayCursorcxx . . $ AnBqq5#DisplayCursor(49f6e7a06ebc5aa8).();
145 void UpdateCursorcxx . . $ AnBqq5#UpdateCursor(49f6e7a06ebc5aa8).();
146
147 private:
148 SDL_Rect destination_rectanglecxx . . $ AnBqq5#destination_rectangle.;
149 SDL_Rect source_rectanglecxx . . $ AnBqq5#source_rectangle.;
150 SDL_Surface *screencxx . . $ AnBqq5#screen.;
151 SDL_Surface *sonarscreencxx . . $ AnBqq5#sonarscreen.;
152 SDL_Surface *towedarrayscreencxx . . $ AnBqq5#towedarrayscreen.;
153 SDL_Surface *uppersonarcrtcxx . . $ AnBqq5#uppersonarcrt.;
154 SDL_Surface *lowersonarcrtcxx . . $ AnBqq5#lowersonarcrt.;
155 SDL_Surface *ncscalecxx . . $ AnBqq5#ncscale.;
156 SDL_Surface *scscalecxx . . $ AnBqq5#scscale.;
157 SDL_Surface *sonarbuttondowncxx . . $ AnBqq5#sonarbuttondown.;
158 SDL_Surface *sonarbuttonupcxx . . $ AnBqq5#sonarbuttonup.;
159 SDL_Surface *truerelcxx . . $ AnBqq5#truerel.[2];
160 SDL_Surface *sphertowedcxx . . $ AnBqq5#sphertowed.[2];
161 SDL_Surface *uppercrtoffcxx . . $ AnBqq5#uppercrtoff.;
162 SDL_Surface *uppercrtoncxx . . $ AnBqq5#uppercrton.;
163 SDL_Surface *lowercrtoffcxx . . $ AnBqq5#lowercrtoff.;
164 SDL_Surface *lowercrtoncxx . . $ AnBqq5#lowercrton.;
165 SDL_Surface *tb16winchoffcxx . . $ AnBqq5#tb16winchoff.;
166 SDL_Surface *tb16winchoncxx . . $ AnBqq5#tb16winchon.;
167 SDL_Surface *extendtb16cxx . . $ AnBqq5#extendtb16.[2];
168 SDL_Surface *retracttb16cxx . . $ AnBqq5#retracttb16.[2];
169 SDL_Surface *cutarraycxx . . $ AnBqq5#cutarray.;
170 SDL_Surface *sendpingcxx . . $ AnBqq5#sendping.;
171 SDL_Surface *assigntrackerwidgetcxx . . $ AnBqq5#assigntrackerwidget.[2];
172 SDL_Surface *tracker1cxx . . $ AnBqq5#tracker1.[2];
173 SDL_Surface *tracker2cxx . . $ AnBqq5#tracker2.[2];
174 SDL_Surface *tracker3cxx . . $ AnBqq5#tracker3.[2];
175 SDL_Surface *tracker4cxx . . $ AnBqq5#tracker4.[2];
176 DFontcxx . . $ DFont# largeFontcxx . . $ AnBqq5#largeFont(53aff8785a2e1b8c).(const char*, const char *);
177 TowedArraycxx . . $ TowedArray# &TB16cxx . . $ AnBqq5#TB16.;
178 TargetMotionAnalysiscxx . . $ TargetMotionAnalysis# &Tmacxx . . $ AnBqq5#Tma.;
179 msgcxx . . $ msg# &Messagecxx . . $ AnBqq5#Message.;
180 int tempintcxx . . $ AnBqq5#tempint.;
181 int tempvalcxx . . $ AnBqq5#tempval.;
182 float deAnglecxx . . $ AnBqq5#deAngle.;
183 static char textcxx . . $ AnBqq5#text.[120];
184 Uint32cxx . . $ Uint32# blackcxx . . $ AnBqq5#black.;
185 Uint32cxx . . $ Uint32# whitecxx . . $ AnBqq5#white.;
186 Uint32cxx . . $ Uint32# greencxx . . $ AnBqq5#green.;
187 bool northcentercxx . . $ AnBqq5#northcenter.;
188 };
189
190 #endif