source: trunk/Cosy/gui/MGPngReader.h@ 18045

Last change on this file since 18045 was 1810, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 2.7 KB
Line 
1#ifndef COSY_MGPngReader
2#define COSY_MGPngReader
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
17class TArrayF;
18class TH1F;
19class TH2F;
20class TGraph;
21
22class TTimer;
23
24class MGMenuBar;
25class MGPopupMenu;
26class TGTextEntry;
27
28class MGImage;
29class MGCoordinates;
30
31class StarCatalog;
32class MStarList;
33
34class TFile;
35class TTree;
36class TBranch;
37
38class Leds;
39class Rings;
40
41class MGPngReader : public PixClient, public TGMainFrame
42{
43private:
44 MGList *fList;
45
46 MGMenuBar *fMenu;
47 MGImage *fImage;
48 MGImage *fZoomImage;
49
50 MGPopupMenu *fDisplay;
51 MGPopupMenu *fWrite;
52 MGPopupMenu *fWritePictures;
53 MGPopupMenu *fFileType;
54 MGPopupMenu *fWriteType;
55 MGPopupMenu *fAnalyse;
56 MGPopupMenu *fCaOs;
57 MGPopupMenu *fWriteRate;
58 MGPopupMenu *fInterpol;
59 MGPopupMenu *fSetup;
60 MGPopupMenu *fLimMag;
61
62 TFile *fFile;
63 TTree *fTree;
64 TBranch *fBranchL;
65 TBranch *fBranchT;
66 TBranch *fBranchR;
67
68 Leds *fLeds;
69 Rings *fRings;
70 Double_t fTime;
71
72 TH1F *fHistpr;
73 TH1F *fHistprx;
74 TH1F *fHistpry;
75 TH1F *fHistw[6];
76 TH1F *fHistallw;
77 TH1F *fHistv[6];
78
79 TH2F *fHistprxpry;
80
81 TGraph *fGraphprx;
82 TGraph *fGraphpry;
83 TGraph *fGraphw[6];
84
85 MGCoordinates *fCRaDec;
86 MGCoordinates *fCZdAz;
87
88 MGCoordinates *fPZdAz;
89
90 TGTextEntry *fPixSize;
91
92 StarCatalog *fSao;
93
94 RaDec *fRaDec;
95
96 TTimer *fTimer;
97
98 Int_t fDx;
99 Int_t fDy;
100
101 int fIntRate;
102 int fWrtRate;
103
104 void SetPixSize(const double pixsize);
105 void Toggle(MGPopupMenu *p, UInt_t id);
106 void GetCoordinates();
107 void CalcTrackingError(Leds &, MStarList &);
108 ZdAz TrackingError(TArrayF &alt, TArrayF &az, TArrayF &mag) const;
109
110 void InitHists();
111 void InitGraphs();
112 void InitGui();
113
114 void OpenFile();
115
116 void ResetHists();
117 void DisplayAnalysis();
118
119 Bool_t HandleTimer(TTimer *t);
120 //Bool_t HandleKey(Event_t* event);
121
122 void DrawCircle(byte *img, double r);
123
124public:
125 MGPngReader(MObservatory::LocationName_t obs);
126 virtual ~MGPngReader();
127
128 //void Update();
129
130 void Layout();
131 void CloseWindow();
132
133 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
134 Bool_t HandleDoubleClick(Event_t *event);
135
136 //
137 // Execution of one frame - this function may be overloaded!
138 //
139 void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm);
140
141 ClassDef(MGPngReader, 0)
142};
143
144#endif
Note: See TracBrowser for help on using the repository browser.