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

Last change on this file since 602 was 589, checked in by harald, 24 years ago
Added some file for the Display and for the Geometry description.
File size: 1.3 KB
Line 
1#ifndef M_HEXAGON
2#define M_HEXAGON
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 MHexagon : public TObject, public TAttLine, public TAttFill
25{
26 protected:
27
28 Float_t fX ; // X coordinate of center
29 Float_t fY ; // Y coordinate of center
30 Float_t fD ; // diameter D or better distance between opposite sides
31
32 public:
33
34 MHexagon() ;
35 MHexagon(Float_t x, Float_t y, Float_t d ) ;
36 MHexagon( const MHexagon &hexagon) ;
37 virtual ~MHexagon() ;
38
39 void Copy ( TObject &hexagon ) ;
40
41 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py ) ;
42 virtual void Draw( Option_t *Option="") ;
43 virtual void DrawHexagon( Float_t x, Float_t y, Float_t d ) ;
44
45 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py ) ;
46
47 virtual void ls (Option_t *Option="") ;
48 virtual void Paint(Option_t *Option="") ;
49 virtual void PaintHexagon(Float_t x, Float_t y, Float_t d) ;
50 virtual void Print(Option_t *Option="") ;
51
52 ClassDef ( MHexagon, 1 ) // a hexagon for MAGIC
53
54} ;
55
56#endif
57
Note: See TracBrowser for help on using the repository browser.