source: trunk/MagicSoft/Cosy/main/MStarguider.h@ 2500

Last change on this file since 2500 was 2278, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef COSY_MStarguider
2#define COSY_MStarguider
3
4#ifndef ROOT_TGFrame
5#include <TGFrame.h>
6#endif
7#include "PixClient.h"
8#ifndef MARS_MObservatory
9#include "MObservatory.h"
10#endif
11
12#include "MGList.h"
13#include "MGImage.h"
14
15#include "coord.h"
16#include "timer.h"
17
18class TArrayF;
19class TGLabel;
20
21class TTimer;
22
23class MGMenuBar;
24class MGPopupMenu;
25class TGTextEntry;
26
27class MGImage;
28class MGCoordinates;
29
30class StarCatalog;
31class MStarList;
32class MCosy;
33class MCaos;
34
35class Leds;
36
37class MStarguider : public PixClient, public TGMainFrame
38{
39private:
40 MGList *fList;
41
42 MGMenuBar *fMenu;
43 MGImage *fImage;
44 MGImage *fZoomImage;
45
46 MGPopupMenu *fDisplay;
47 MGPopupMenu *fWritePictures;
48 MGPopupMenu *fFileType;
49 MGPopupMenu *fWriteType;
50 MGPopupMenu *fWriteRate;
51 MGPopupMenu *fInterpol;
52 MGPopupMenu *fSetup;
53 MGPopupMenu *fLimMag;
54
55 MGPopupMenu *fCaosWrite;
56 MGPopupMenu *fCaosPrint;
57 MGPopupMenu *fCaosAnalyse;
58 MGPopupMenu *fCaOs;
59
60 MGCoordinates *fCRaDec;
61 MGCoordinates *fCZdAz;
62
63 MGCoordinates *fPZdAz;
64
65 TGTextEntry *fPixSize;
66 TGTextEntry *fAngle;
67
68 TGLabel *fFps;
69 TGLabel *fPosZoom;
70
71 StarCatalog *fSao;
72 MCosy *fCosy;
73 MCaos *fCaos;
74
75 RaDec *fRaDec;
76
77 TTimer *fTimer;
78 Timer fTime;
79
80 Int_t fDx;
81 Int_t fDy;
82
83 byte fIntRate;
84 int fWrtRate;
85
86 void SetPixSize(const double pixsize);
87 void Toggle(MGPopupMenu *p, UInt_t id);
88 //void GetCoordinates();
89 void CalcTrackingError(Leds &, MStarList &);
90 ZdAz TrackingError(TArrayF &alt, TArrayF &az, TArrayF &mag) const;
91 bool Interpolate(const unsigned long n, byte *img) const;
92
93 //void InitHists();
94 //void InitGraphs();
95 void InitGui();
96
97 //void OpenFile();
98
99 //void ResetHists();
100 //void DisplayAnalysis();
101 void UpdatePosZoom();
102
103 Bool_t HandleTimer(TTimer *t);
104 //Bool_t HandleKey(Event_t* event);
105
106public:
107 MStarguider(MObservatory::LocationName_t obs);
108 virtual ~MStarguider();
109
110 //void Update();
111
112 void Layout();
113 void CloseWindow();
114
115 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
116 Bool_t HandleDoubleClick(Event_t *event);
117
118 void SetPointingPosition(RaDec rd);
119 void SetCosy(MCosy *c) { fCosy = c; }
120
121 XY GetCoordinates() const;
122
123 //
124 // Execution of one frame - this function may be overloaded!
125 //
126 void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm);
127
128 ClassDef(MStarguider, 0)
129};
130
131#endif
Note: See TracBrowser for help on using the repository browser.