source: trunk/FACT++/drive/MStarguider.h@ 20115

Last change on this file since 20115 was 18627, checked in by tbretz, 8 years ago
Disentengle from root and Mars were possible, clean up of gui from all obsolete stuff
File size: 2.0 KB
Line 
1#ifndef COSY_MStarguider
2#define COSY_MStarguider
3
4#include "PixClient.h"
5#include "MGImage.h"
6#include "Led.h"
7#include "Camera.h"
8
9#include "dic.hxx"
10#include "dis.hxx"
11
12#include <TGButton.h>
13
14class TGMenuBar;
15class TGPopupMenu;
16class TGTextEntry;
17
18class PixGetter;
19
20class MGImage;
21class MCaos;
22class FilterLed;
23class Ring;
24
25//class Leds;
26class MStarguider : public PixClient, public TGMainFrame, public DimCommandHandler
27{
28private:
29 DimService fDimData;
30 DimCommand fDimTPoint;
31 DimCommand fDimScreenshot;
32
33 Camera *fGetter;
34
35 TGMenuBar *fMenu;
36 MGImage *fImage;
37
38 TGPopupMenu *fDisplay;
39 TGPopupMenu *fSetup;
40 TGPopupMenu *fInterpol;
41
42 TGPopupMenu *fCaosWrite;
43 TGPopupMenu *fCaosPrint;
44 TGPopupMenu *fCaosAnalyse;
45 TGPopupMenu *fCaOs;
46
47private:
48 MCaos *fCaos;
49 TTimer *fTimer;
50
51 Int_t fDx;
52 Int_t fDy;
53
54 byte fIntRate;
55// int fWrtRate;
56
57 Double_t fLastBright;
58 Double_t fRadius; // LED radius [cm]
59
60 Float_t fFindStarCut;
61 Int_t fFindStarBox;
62
63 int fTPointMode;
64
65 bool fScreenshotColor;
66 std::string fScreenshotName;
67
68 void WritePNG(const char *name, const byte *gbuf, const byte *cbuf);
69
70 void Toggle(TGPopupMenu *p, UInt_t id);
71 void SwitchOff(TGPopupMenu *p, UInt_t id);
72 bool Interpolate(const unsigned long n, byte *img) const;
73
74 void InitGui(Int_t channel);
75
76 //void DrawZoomImage(const byte *img);
77 //void DrawCosyImage(const byte *img);
78
79 Bool_t HandleTimer(TTimer *t);
80
81 void SetCut(Double_t cut);
82
83public:
84 MStarguider(Int_t channel);
85 virtual ~MStarguider();
86
87 //void SetupEnv(TEnv &env);
88
89 void Layout();
90 void CloseWindow();
91
92 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
93
94 //Bool_t HandleDoubleClick(Event_t *event);
95
96 //
97 // Execution of one frame - this function may be overloaded!
98 //
99 void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm);
100
101 void commandHandler(); /// Overwritten DimCommand::commandHandler
102};
103
104#endif
105
106
Note: See TracBrowser for help on using the repository browser.