]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpSubZonePainter.h
new class AliMUONLoader
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSubZonePainter.h
1 // $Id$
2 // Category: graphics
3 //
4 // Class AliMpSubZonePainter
5 // -------------------------
6 // Class for drawing a subzone into canvas
7 //
8 // Authors: David Guez, IPN Orsay
9
10 #ifndef ALI_MP_SUBZONE_PAINTER_H
11 #define ALI_MP_SUBZONE_PAINTER_H
12
13 #include "AliMpVPainter.h"
14
15 class AliMpSubZone;
16
17 class AliMpSubZonePainter : public AliMpVPainter
18 {
19  public:
20   AliMpSubZonePainter();
21   AliMpSubZonePainter(AliMpSubZone *subZone);
22   virtual void DumpObject(); //*MENU*
23   virtual void Draw(Option_t *option);
24   virtual void Paint(Option_t *option);
25   // get/set methods
26   virtual TVector2 GetPosition() const;
27   virtual TVector2 GetDimensions() const;
28   virtual Int_t DistancetoPrimitive(Int_t x, Int_t y);
29  private: 
30
31   AliMpSubZone *fSubZone;         // the subzone to draw
32   ClassDef(AliMpSubZonePainter,1) // SubZone painter
33 };
34 #endif //ALI_MP_SUBZONE_PAINTER_H