1 #ifndef ALIMUONMANUPADPAINTER_H
2 #define ALIMUONMANUPADPAINTER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONManuPadPainter
11 /// \brief Painter for the pads of one manu
13 // Author Laurent Aphecetche, Subatech
15 #ifndef ALIMUONVPAINTER_H
16 # include "AliMUONVPainter.h"
19 # include "AliMpPad.h"
22 class AliMUONManuPadPainter : public AliMUONVPainter
25 AliMUONManuPadPainter();
26 AliMUONManuPadPainter(const AliMUONVPainter& mother,
29 virtual ~AliMUONManuPadPainter();
32 virtual TObject* Clone(const char* = "") const { return new AliMUONManuPadPainter(*this); }
34 virtual void ComputeDataRange(const AliMUONVTrackerData& data,
36 Double_t& dataMin, Double_t& dataMax) const;
38 virtual char* GetObjectInfo(Int_t px, Int_t py) const;
40 /// We advertise that we do handle mouse movement
41 virtual Bool_t HandleMouseMotion() const { return kTRUE; }
43 TString NameAtPosition(Double_t x, Double_t y) const;
45 virtual TString Describe(const AliMUONVTrackerData& data, Int_t dataIndex,
46 Double_t x=FLT_MAX, Double_t y=FLT_MAX);
48 void PaintArea(const AliMUONVTrackerData& data,
53 void PaintOutline(Int_t color=-1, Int_t width=-1, Double_t x=FLT_MAX, Double_t y=FLT_MAX);
59 void PaintPad(Int_t padId) const;
60 AliMpPad PadByPosition(Double_t x, Double_t y) const;
63 Int_t fDetElemId; ///< our detection element id
64 Int_t fManuId; ///< our manu id
65 Int_t fLineColorBck; ///< line color for backup
66 Int_t fLineWidthBck; ///< line width for backup
67 Int_t fFillColorBck; ///< fill color for backup
68 Int_t fFillStyleBck; ///< fill style for backup
70 ClassDef(AliMUONManuPadPainter,1) // Painter for the pads of one manu