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

Last change on this file since 691 was 665, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.4 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 Draw( Option_t *Option="") ;
46 virtual void DrawHexagon( Float_t x, Float_t y, Float_t d ) ;
47
48 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py ) ;
49
50 virtual void ls (Option_t *Option="") ;
51 virtual void Paint(Option_t *Option="") ;
52 virtual void PaintHexagon(Float_t x, Float_t y, Float_t d) ;
53 virtual void Print(Option_t *Option="") ;
54
55 ClassDef ( MHexagon, 1 ) // a hexagon for MAGIC
56
57} ;
58
59#endif
60
Note: See TracBrowser for help on using the repository browser.