]>
Commit | Line | Data |
---|---|---|
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 ~AliMpSubZonePainter(); | |
23 | ||
24 | virtual void DumpObject(); //-MENU- | |
25 | virtual void Draw(Option_t *option); | |
26 | virtual void Paint(Option_t *option); | |
27 | // get/set methods | |
28 | virtual TVector2 GetPosition() const; | |
29 | virtual TVector2 GetDimensions() const; | |
30 | virtual Int_t DistancetoPrimitive(Int_t x, Int_t y); | |
31 | ||
32 | protected: | |
33 | AliMpSubZonePainter(const AliMpSubZonePainter& right); | |
34 | AliMpSubZonePainter& operator = (const AliMpSubZonePainter& right); | |
35 | ||
36 | private: | |
37 | AliMpSubZone *fSubZone; // the subzone to draw | |
38 | ClassDef(AliMpSubZonePainter,1) // SubZone painter | |
39 | }; | |
40 | #endif //ALI_MP_SUBZONE_PAINTER_H |