source: trunk/MagicSoft/Mars/mtools/MagicShow.h@ 9481

Last change on this file since 9481 was 9369, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MagicShow
2#define MARS_MagicShow
3
4#ifndef MARS_MAGIC
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TText
9#include <TText.h>
10#endif
11#ifndef ROOT_TTimer
12#include <TTimer.h>
13#endif
14#ifndef ROOT_TClonesArray
15#include <TClonesArray.h>
16#endif
17#ifndef ROOT_TArrayI
18#include <TArrayI.h>
19#endif
20
21class TMarker;
22class TVirtualPad;
23
24class MGeomCam;
25class MHexagon;
26
27class MagicShow : public TObject
28{
29private:
30 enum
31 {
32 kBackground = 50,
33 kUserBits = 0x7fc000 // 14-23 are allowed
34
35 };
36
37 TTimer fTimer; // timer rising the 500ms interrputs
38
39 MGeomCam *fGeomCam; // pointer to camera geometry
40
41 UShort_t fNumPixels; // number of pixels in the present geometry
42 Short_t fNumPixel; // number of pixel actually shown
43 Float_t fRange; // the range in millimeters of the present geometry
44
45 Bool_t fAuto; // automatic stepping on/off
46
47 TText fShow; // TText showing the numbers of pixels and bombs
48 TText *fText[6]; // ttext showing the pixel numbers of the neighbors
49
50 TArrayI fColors;
51
52 void Update();
53 void Free();
54 void SetNewCamera(MGeomCam *);
55 void ChangePixel(Int_t add);
56 void Init();
57
58 Bool_t HandleTimer(TTimer *timer);
59 void Draw(Option_t *option="");
60 void Paint(Option_t *option="");
61 void ExecuteEvent(Int_t event, Int_t px, Int_t py);
62 Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; }
63
64public:
65 MagicShow();
66 MagicShow(const MGeomCam &geom);
67 ~MagicShow();
68
69 void ChangeCamera(); //*MENU*
70
71 ClassDef(MagicShow, 0) // Tool to visualize next neighbours
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.