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

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