source: trunk/Cosy/gui/MGAccuracy.h@ 13452

Last change on this file since 13452 was 7790, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef COSY_MGAccuracy
2#define COSY_MGAccuracy
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 MGAccuracy : public MGEmbeddedCanvas
21{
22protected:
23 TLine *fLin1;
24 TLine *fLin2;
25
26 TText *fTxt;
27
28 TLine *fBar;
29
30 TGraph *fGraph;
31
32 Double_t fTime;
33 Double_t fColorScale;
34
35 void DrawCoordinateSystem();
36
37 void InitText();
38 void InitCross();
39 void InitBar();
40
41 void UpdateCross(Float_t x, Float_t y);
42 void UpdateText(Float_t acc);
43 void UpdateGraph(Float_t acc);
44 void Update(Float_t zd, Float_t x, Float_t y);
45
46public:
47 MGAccuracy(const TGWindow* p, const UInt_t w);
48 ~MGAccuracy();
49
50 void DrawText(const char *c1, const char *c2, const char *c3, const char *txt);
51 void DrawCircles(Double_t rad=79.1);
52
53 void SetColorScale(Double_t scale=1) { fColorScale=scale; }
54
55 void Update(ZdAz &pos, ZdAz &acc);
56
57 ClassDef(MGAccuracy, 0)
58};
59
60#endif // COSY_MGAccuracy
Note: See TracBrowser for help on using the repository browser.