source: trunk/MagicSoft/Cosy/gui/MGStarguider.h@ 1802

Last change on this file since 1802 was 1802, checked in by tbretz, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#ifndef MGSTARGUIDER_H
2#define MGSTARGUIDER_H
3
4#ifndef ROOT_TGFrame
5#include <TGFrame.h>
6#endif
7#include "PixClient.h"
8
9#include "MGList.h"
10#include "MGImage.h"
11
12#ifndef MARS_MObservatory
13#include "MObservatory.h"
14#endif
15
16class AltAz;
17class RaDec;
18
19class TTimer;
20
21class TGMenuBar;
22class TGPopupMenu;
23class TGTextEntry;
24
25class MGImage;
26class MGCoordinates;
27
28class StarCatalog;
29class MStarList;
30
31class MGStarguider : public PixClient, public TGMainFrame
32{
33private:
34 MGList *fList;
35
36 TGMenuBar *fMenu;
37 MGImage *fImage;
38 MGImage *fZoomImage;
39
40 TGPopupMenu *fDisplay;
41 TGPopupMenu *fWrite;
42 TGPopupMenu *fFileType;
43 TGPopupMenu *fWriteType;
44 TGPopupMenu *fWriteRate;
45 TGPopupMenu *fInterpol;
46 TGPopupMenu *fSetup;
47 TGPopupMenu *fLimMag;
48
49 MGCoordinates *fCRaDec;
50 MGCoordinates *fCZdAz;
51
52 TGTextEntry *fPixSize;
53
54 StarCatalog *fSao;
55
56 RaDec *fRaDec;
57
58 TTimer *fTimer;
59
60 const MObservatory::LocationName_t fObservatory;
61
62 Int_t fDx;
63 Int_t fDy;
64
65 int fIntRate;
66 int fWrtRate;
67
68 void SetPixSize(const double pixsize);
69 void Toggle(TGPopupMenu *p, UInt_t id);
70 void GetCoordinates();
71 void CalcTrackingError(MStarList &, MStarList &);
72
73 Bool_t HandleTimer(TTimer *t);
74
75public:
76 MGStarguider(MObservatory::LocationName_t key);
77 virtual ~MGStarguider();
78
79 //void Update();
80
81 void Layout();
82 void CloseWindow();
83
84 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
85 Bool_t HandleDoubleClick(Event_t *event);
86
87 //
88 // Execution of one frame - this function may be overloaded!
89 //
90 void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm);
91
92 ClassDef(MGStarguider, 0)
93};
94
95#endif
Note: See TracBrowser for help on using the repository browser.