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);
55 /// Whether this painter can be detached from the current view.
56 Bool_t CanBeDetached() const { return kFALSE; }
58 virtual void DrawHistogramClone(Double_t* values=0x0) const;
64 void PaintPad(Int_t padId) const;
65 AliMpPad PadByPosition(Double_t x, Double_t y) const;
68 Int_t fDetElemId; ///< our detection element id
69 Int_t fManuId; ///< our manu id
70 Int_t fLineColorBck; ///< line color for backup
71 Int_t fLineWidthBck; ///< line width for backup
72 Int_t fFillColorBck; ///< fill color for backup
73 Int_t fFillStyleBck; ///< fill style for backup
75 ClassDef(AliMUONManuPadPainter,1) // Painter for the pads of one manu