source: trunk/Cosy/gui/MGNumStars.h@ 9872

Last change on this file since 9872 was 7790, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 998 bytes
Line 
1#ifndef COSY_MGNumStars
2#define COSY_MGNumStars
3
4//
5// This File contains the declaration of the MGCoordinates-class
6//
7// Author: Thomas Bretz
8// Version: V1.0 (1-8-2000)
9
10#ifndef COSY_MGEmbeddedCanvas
11#include "MGEmbeddedCanvas.h"
12#endif
13
14class TGraph;
15class TLine;
16class TText;
17
18class ZdAz;
19
20class MGNumStars : public MGEmbeddedCanvas
21{
22protected:
23 TLine *fLin1;
24 TLine *fLin2;
25
26 TText *fTxt;
27
28 TLine *fBar1;
29 TLine *fBar2;
30
31 TGraph *fGraph1;
32 TGraph *fGraph2;
33
34 Double_t fTime;
35
36 void DrawCoordinateSystem();
37
38 void InitText();
39 void InitCross();
40 void InitBar(TLine* &bar);
41 void InitGraph(TGraph* &graph, Int_t col);
42
43 void UpdateBar(TLine &bar, UInt_t num);
44 void UpdateGraph(TGraph &graph, Double_t dtime, UInt_t num);
45
46public:
47 MGNumStars(const TGWindow* p, const UInt_t w);
48 ~MGNumStars();
49
50 void DrawText(const char *txt);
51
52 void Update(UInt_t det, UInt_t cor);
53
54 ClassDef(MGNumStars, 0)
55};
56
57#endif // COSY_MGNumStars
Note: See TracBrowser for help on using the repository browser.