source: trunk/MagicSoft/Mars/mgui/MHexagon.h@ 700

Last change on this file since 700 was 698, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MHEXAGON_H
2#define MHEXAGON_H
3
4//////////////////////////////////////////////////////////////
5//
6// MHexagon
7//
8// A Hexagon for the MAGIC event display
9//
10//////////////////////////////////////////////////////////////
11
12#ifndef ROOT_TObject
13#include <TObject.h>
14#endif
15
16#ifndef ROOT_TAttLine
17#include <TAttLine.h>
18#endif
19
20#ifndef ROOT_TAttFill
21#include <TAttFill.h>
22#endif
23
24class MGeomPix;
25
26class MHexagon : public TObject, public TAttLine, public TAttFill
27{
28 protected:
29
30 Float_t fX ; // X coordinate of center
31 Float_t fY ; // Y coordinate of center
32 Float_t fD ; // diameter D or better distance between opposite sides
33
34 public:
35
36 MHexagon() ;
37 MHexagon(Float_t x, Float_t y, Float_t d ) ;
38 MHexagon(MGeomPix &pix);
39 MHexagon( const MHexagon &hexagon) ;
40 virtual ~MHexagon() ;
41
42 void Copy ( TObject &hexagon ) ;
43
44 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py ) ;
45 virtual void DrawHexagon( Float_t x, Float_t y, Float_t d ) ;
46
47 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py ) ;
48
49 virtual void ls (Option_t *Option="") ;
50 virtual void Paint(Option_t *Option="") ;
51 virtual void PaintHexagon(Float_t x, Float_t y, Float_t d) ;
52 virtual void Print(Option_t *Option="") ;
53
54 ClassDef ( MHexagon, 0 ) // a hexagon for MAGIC
55
56} ;
57
58#endif
59
Note: See TracBrowser for help on using the repository browser.