| 1 | /*************************************************************************** |
| 2 | targetmotionanalysis.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Mar 16 2002 |
| 5 | copyright : (C) 2002 by Michael Bridak |
| 6 | email : [email protected] |
| 7 | $Id: targetmotionanalysis.h,v 1.6 2003/04/20 16:55:49 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 TARGETMOTIONANALYSIS_H |
| 20 | #define TARGETMOTIONANALYSIS_Hcxx . . $ `src/targetmotionanalysis.h:20:9`! |
| 21 | #define MAXTRACKERScxx . . $ `src/targetmotionanalysis.h:21:9`! 13 |
| 22 | |
| 23 | #include "boatpositionlog.h"cxx . . $ `<file>/src/boatpositionlog.h`/ |
| 24 | #include "contact.h"cxx . . $ `<file>/src/contact.h`/ |
| 25 | |
| 26 | /** |
| 27 | *@author Michael Bridak |
| 28 | */ |
| 29 | |
| 30 | class TargetMotionAnalysiscxx . . $ TargetMotionAnalysis# : public BoatPositionLogcxx . . $ BoatPositionLog# { |
| 31 | public: |
| 32 | Contactcxx . . $ Contact# Solutioncxx . . $ TargetMotionAnalysis#Solution.[12]; |
| 33 | Uint32cxx . . $ Uint32# textcolorcxx . . $ TargetMotionAnalysis#textcolor., blackcxx . . $ TargetMotionAnalysis#black., whitecxx . . $ TargetMotionAnalysis#white., redcxx . . $ TargetMotionAnalysis#red., greencxx . . $ TargetMotionAnalysis#green., yellowcxx . . $ TargetMotionAnalysis#yellow., mapcolorcxx . . $ TargetMotionAnalysis#mapcolor.;//Place to hold color info |
| 34 | |
| 35 | double our_headingcxx . . $ TargetMotionAnalysis#our_heading.; |
| 36 | double target_headingcxx . . $ TargetMotionAnalysis#target_heading.; |
| 37 | |
| 38 | float our_speedcxx . . $ TargetMotionAnalysis#our_speed.; |
| 39 | float target_speedcxx . . $ TargetMotionAnalysis#target_speed.; |
| 40 | |
| 41 | /** an SDL surface to plot our GeoPlot on */ |
| 42 | SDL_Surface *GeoPlotScreencxx . . $ TargetMotionAnalysis#GeoPlotScreen.; |
| 43 | |
| 44 | /** */ |
| 45 | int plotscalecxx . . $ TargetMotionAnalysis#plotscale.; |
| 46 | |
| 47 | /** Geoplot centering flag */ |
| 48 | bool centerGeoPlotcxx . . $ TargetMotionAnalysis#centerGeoPlot.; |
| 49 | |
| 50 | TargetMotionAnalysiscxx . . $ TargetMotionAnalysis#TargetMotionAnalysis(49f6e7a06ebc5aa8).(); |
| 51 | ~cxx . . $ TargetMotionAnalysis#`~TargetMotionAnalysis`(ced63f7c635d850d).TargetMotionAnalysiscxx . . $ TargetMotionAnalysis#(); |
| 52 | |
| 53 | /** Frees a tracker to be used later. */ |
| 54 | void ClearTrackercxx . . $ TargetMotionAnalysis#ClearTracker(d4f767463ce0a6b3).(int tracker); |
| 55 | |
| 56 | /** Returns the TRUE if tracker is in use */ |
| 57 | bool GetTrackerStatecxx . . $ TargetMotionAnalysis#GetTrackerState(4a668f6de69bf818).(int tracker) const; |
| 58 | |
| 59 | /** Assign a tracker to a target */ |
| 60 | void AssignTrackercxx . . $ TargetMotionAnalysis#AssignTracker(3e454b8ccf442868).(int tracker, int target); |
| 61 | |
| 62 | /** Assign Target designation and Tracker to trace currently under |
| 63 | cursor on SONAR screen. |
| 64 | */ |
| 65 | void DesignateContactcxx . . $ TargetMotionAnalysis#DesignateContact(49f6e7a06ebc5aa8).(); |
| 66 | |
| 67 | /** Display a GeoPlot for the designated contact based on the |
| 68 | position of the boat and the bearing history of the contact. |
| 69 | */ |
| 70 | void DisplayGeoPlotcxx . . $ TargetMotionAnalysis#DisplayGeoPlot(3e454b8ccf442868).(int xoffset, int yoffset); |
| 71 | |
| 72 | /** Display the LOS Diagram |
| 73 | */ |
| 74 | void DisplayLOScxx . . $ TargetMotionAnalysis#DisplayLOS(49f6e7a06ebc5aa8).(); |
| 75 | |
| 76 | /** Creates a speed ruler which we will use to drag around the |
| 77 | GeoPlot to test solutions. |
| 78 | */ |
| 79 | void CreateSpeedRulercxx . . $ TargetMotionAnalysis#CreateSpeedRuler(49f6e7a06ebc5aa8).(); |
| 80 | |
| 81 | /** Plots the amount of error from the expected bearing to target |
| 82 | and the actual bearing recieved. |
| 83 | */ |
| 84 | void BearingDevitaionPlotcxx . . $ TargetMotionAnalysis#BearingDevitaionPlot(49f6e7a06ebc5aa8).(); |
| 85 | |
| 86 | /** Record the boats current position |
| 87 | */ |
| 88 | void RecordBoatPositioncxx . . $ TargetMotionAnalysis#RecordBoatPosition(dcadd90aaa0f609).(float latitude, float longitude, double bearing, Uint32cxx . . $ Uint32# tick); |
| 89 | |
| 90 | /** Lock Mutex */ |
| 91 | void Lockcxx . . $ TargetMotionAnalysis#Lock(49f6e7a06ebc5aa8).(); |
| 92 | |
| 93 | /** Unlock Mutex */ |
| 94 | void UnLockcxx . . $ TargetMotionAnalysis#UnLock(49f6e7a06ebc5aa8).(); |
| 95 | |
| 96 | /** Initialize the graphics */ |
| 97 | void InitGraphicscxx . . $ TargetMotionAnalysis#InitGraphics(49f6e7a06ebc5aa8).(); |
| 98 | |
| 99 | /** No descriptions */ |
| 100 | void PlotPixelcxx . . $ TargetMotionAnalysis#PlotPixel(f59d17f8b9f2d3e1).(int x, int y, Uint32cxx . . $ Uint32# color); |
| 101 | |
| 102 | /** erases the work screen */ |
| 103 | void ClearGeoPlotcxx . . $ TargetMotionAnalysis#ClearGeoPlot(49f6e7a06ebc5aa8).(); |
| 104 | |
| 105 | /** Plot the boats history */ |
| 106 | void PlotHistorycxx . . $ TargetMotionAnalysis#PlotHistory(b1146eedae1e1d0b).(int scale, int change_scrollx, int change_scrolly); |
| 107 | |
| 108 | /** Draws a line....What were you expecting? */ |
| 109 | void DrawLinecxx . . $ TargetMotionAnalysis#DrawLine(6fb2c7d311165c4f).(int X1,int Y1,int X2,int Y2,Uint32cxx . . $ Uint32# Color); |
| 110 | |
| 111 | /** No descriptions */ |
| 112 | void DrawDotcxx . . $ TargetMotionAnalysis#DrawDot(f59d17f8b9f2d3e1).(int x, int y, Uint32cxx . . $ Uint32# color); |
| 113 | |
| 114 | /** Increments plotscale to zoom in on the GeoPlot */ |
| 115 | void IncreasePlotScalecxx . . $ TargetMotionAnalysis#IncreasePlotScale(49f6e7a06ebc5aa8).(); |
| 116 | |
| 117 | /** Decriment the plotscale to zoom out of GeoPlot */ |
| 118 | void DecreasePlotScalecxx . . $ TargetMotionAnalysis#DecreasePlotScale(49f6e7a06ebc5aa8).(); |
| 119 | |
| 120 | /** No descriptions */ |
| 121 | void ToggleGeoPlotCentercxx . . $ TargetMotionAnalysis#ToggleGeoPlotCenter(49f6e7a06ebc5aa8).(); |
| 122 | |
| 123 | /** Fill in the initial values for the solution. */ |
| 124 | void InitializeSolutioncxx . . $ TargetMotionAnalysis#InitializeSolution(b89d05379985c7fc).(float LatYards, float LonYards, int Speed, int Heading); |
| 125 | |
| 126 | private: // Private attributes |
| 127 | /** */ |
| 128 | bool trackerstatecxx . . $ TargetMotionAnalysis#trackerstate.[MAXTRACKERScxx . . $ `src/targetmotionanalysis.h:21:9`!]; |
| 129 | struct packetcxx . . $ TargetMotionAnalysis#packet# { |
| 130 | float LatYardscxx . . $ TargetMotionAnalysis#packet#LatYards.; |
| 131 | float LonYardscxx . . $ TargetMotionAnalysis#packet#LonYards.; |
| 132 | float BearingToTargetcxx . . $ TargetMotionAnalysis#packet#BearingToTarget.; |
| 133 | }; |
| 134 | |
| 135 | |
| 136 | |
| 137 | SDL_mutex *MutexLockcxx . . $ TargetMotionAnalysis#MutexLock.; |
| 138 | }; |
| 139 | |
| 140 | #endif |