f75bcfbdf518aa96352965319919fc4b13e75859
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpRowSegmentPainter.h
1 // $Id$
2 // Category: graphics
3 //
4 // Class AliMpRowSegmentPainter
5 // ----------------------------
6 // Class for drawing a motif into canvas
7 //
8 // Authors: David Guez, IPN Orsay
9
10 #ifndef ALI_MP_ROW_SEGMENT_PAINTER_H
11 #define ALI_MP_ROW_SEGMENT_PAINTER_H
12
13 #include "AliMpVPainter.h"
14
15 class AliMpVRowSegment;
16
17 class AliMpRowSegmentPainter : public AliMpVPainter
18 {
19  public:
20   AliMpRowSegmentPainter();
21   AliMpRowSegmentPainter(AliMpVRowSegment *rowSegment);
22   virtual ~AliMpRowSegmentPainter();
23   
24   virtual void DumpObject(); //-MENU-
25   virtual void Draw(Option_t* option);
26   virtual void Paint(Option_t* /*option*/);
27   virtual TVector2 GetPosition() const;
28   virtual TVector2 GetDimensions() const;
29
30  private: 
31   AliMpVRowSegment *fRowSegment;      // the row segment to draw
32   ClassDef(AliMpRowSegmentPainter,1) // Row Segment painter
33 };
34 #endif //ALI_MP_ROW_SEGMENT_PAINTER_H