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 |
|
---|
20 | class AltAz;
|
---|
21 | class RaDec;
|
---|
22 |
|
---|
23 | class TTimer;
|
---|
24 |
|
---|
25 | class MGMenuBar;
|
---|
26 | class MGPopupMenu;
|
---|
27 | class TGTextEntry;
|
---|
28 |
|
---|
29 | class MGImage;
|
---|
30 | class MGCoordinates;
|
---|
31 |
|
---|
32 | class StarCatalog;
|
---|
33 | class MStarList;
|
---|
34 |
|
---|
35 | class TFile;
|
---|
36 | class TTree;
|
---|
37 | class TBranch;
|
---|
38 |
|
---|
39 | class Leds;
|
---|
40 | class Rings;
|
---|
41 |
|
---|
42 | class MGPngReader : public PixClient, public TGMainFrame
|
---|
43 | {
|
---|
44 | private:
|
---|
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 |
|
---|
122 | public:
|
---|
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.