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

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