1 #ifndef ALIMUONVPAINTER_H 2 #define ALIMUONVPAINTER_H 16 #ifndef ALIMUONATTPAINTER_H 20 # include <TQObject.h> 69 Double_t& dataMin, Double_t& dataMax)
const;
71 virtual void Copy(TObject&
object)
const;
88 virtual void Draw(Option_t* opt=
"");
90 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
125 Bool_t
IsInside(Double_t x, Double_t y)
const;
130 virtual void Paint(Option_t* opt=
"");
132 virtual void Print(Option_t* opt=
"")
const;
145 void SetLine(Int_t depth, Int_t lineColor, Int_t lineWidth);
152 void SetOutlined(
const char* pattern, Bool_t flag);
158 void SetVisible(
const char* pattern, Bool_t flag);
171 static void PixelToPad(Int_t px, Int_t py, Double_t& x, Double_t& y);
173 virtual void PaintOutline(Int_t color=-1, Int_t width=-1, Double_t x=FLT_MAX, Double_t y=FLT_MAX);
178 Double_t min, Double_t max);
203 Int_t id1, Int_t id2);
214 Double_t x=FLT_MAX, Double_t y=FLT_MAX);
272 virtual TCollection*
Children()
const;
290 Double_t& x2, Double_t& y2)
const;
AliMUONPainterGroup * MotherGroup() const
Return our mother group.
AliMUONPainterGroup * ResponderGroup() const
Return the responder group.
void SetID(Int_t id0, Int_t id1)
Set our IDs.
void DrawHistogram0() const
To avoid getting a popup asking for the parameter in the GUI...
static void PixelToPad(Int_t px, Int_t py, Double_t &x, Double_t &y)
void SetOutlined(const char *pattern, Bool_t flag)
AliMUONVPainter * Detach() const
AliMUONVTrackerData * InteractiveReadOutConfig() const
void SetLine(Int_t depth, Int_t lineColor, Int_t lineWidth)
virtual void Draw(Option_t *opt="")
void DrawInternalHistogramClone4()
SL.
TString fPathName
our long name
void DrawInternalHistogramClone3()
SL.
AliMUONVPainter * fMother
our mother
virtual Bool_t CanBeDetached() const
Whether this painter can be detached from the current view.
void SetContour(AliMUONContour *contour)
Set out contour.
TH1 * fHistogram
! histogram
virtual TString Name() const
Get our name.
virtual void ComputeDataRange(const AliMUONVTrackerData &data, Int_t dataIndex, Double_t &dataMin, Double_t &dataMax) const
virtual void SetResponder(const char *pattern)
virtual void DrawInternalHistogramClone(Int_t dim) const
void DrawInternalHistogramClone5()
SL.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Bool_t IsExcluded() const
Whether or not the part of the detector represented by this painter should be excluded from readout...
AliMUONPainterGroup * Group(const char *type) const
virtual void PaintOutline(Int_t color=-1, Int_t width=-1, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
TVirtualPad * fPad
the pad we're drawn in
A rectangle area positioned in plane..
virtual char * GetObjectInfo(Int_t px, Int_t py) const
virtual const char * GetName() const
Get our name.
virtual TString PathName() const
Get our path name (aka fullname)
virtual TString ContourName() const
Bool_t fIsValid
whether we were properly initialized
void ShiftClicked(AliMUONVPainter *painter, Double_t *pos)
void GetTypes(TObjArray &types) const
Int_t GetLineWidth() const
Get our line width.
virtual void DrawHistogramClone(Double_t *values=0x0) const
virtual void Print(Option_t *opt="") const
AliMUONVPainter * Mother() const
Return our mother (0 if we're the top node)
void DrawHistogramClone0() const
To avoid getting a popup asking for the parameter in the GUI...
Int_t ID0() const
Get our first ID.
virtual void PaintArea(Int_t fillColor)
TObjArray * fChildren
our children
Int_t fLineWidth
our outline width
AliMUONVPainter(TRootIOCtor *)
static AliMUONVPainter * CreatePainter(const char *className, const AliMUONAttPainter &att, Int_t id1, Int_t id2)
virtual ~AliMUONVPainter()
AliMUONPainterGroup * fPlotterGroup
the plotter group
virtual void Copy(TObject &object) const
void DrawInternalHistogramClone8()
SL.
const AliMUONAttPainter & Attributes() const
Get our attributes.
void SetName(const char *name)
Set our name.
virtual AliMUONAttPainter Validate(const AliMUONAttPainter &attributes) const
Convert attributes so they are valid ones for us.
Int_t ID1() const
Get our second ID.
Base class for a graphical object representing some part of the MUON tracking system.
TString fName
our (short) name
virtual Bool_t HandleMouseMotion() const
Whether we handle mouse motion or not.
void SetMother(AliMUONVPainter *painter)
TVirtualPad * Pad() const
Get the pad in which we are plotted.
virtual TString Describe(const AliMUONVTrackerData &data, Int_t dataIndex, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
void Add(AliMUONVPainter *painter)
Add a painter to our list of children. We adopt this painter (i.e. we become owner).
void Invalidate()
Mark us as not valid.
AliMUONContour * Contour() const
Return the contour representing the outline of this object.
void SetPathName(const char *pathName)
Set our path name (aka fullname)
void DrawInternalHistogramClone2()
SL.
Int_t GetLineColor() const
Get our line color.
void SetLineWidth(Int_t lineWidth)
Set our line width.
AliMUONVPainter * Master() const
void FlatList(TList &list)
AliMUONPainterGroup * fGroup
our group
AliMUONVPainter * GetPainter(Int_t px, Int_t py, Double_t &x, Double_t &y) const
void Clicked(AliMUONVPainter *painter, Double_t *pos)
void GetBoundingBox(Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) const
AliMpArea Area() const
Return the area containing this painter.
TString fType
our type (DE, Chamber, MANU, etc...)
void SetVisible(const char *pattern, Bool_t flag)
AliMUONPainterGroup * CreateGroup(const char *type, Int_t depth)
virtual Bool_t IsValid() const
Whether we are valid or not.
const char * Type() const
Return our type (e.g. PCB, Chamber, DE, MANU, etc...)
AliMUONContour * fContour
our contour
virtual void DrawInternalHistogram(Int_t dim) const
Bool_t IsResponder() const
TMap * fPainterGroups
map of groups
virtual void FillManuList(TObjArray &manuList) const
Append (i.e. don't have the right to clear the array !) our list of manus to manuList.
void DrawInternalHistogramClone6()
SL.
void UpdateGroupsFrom(const AliMUONVPainter &painter)
void SetLineColor(Int_t lineColor)
Set our line color.
AliMUONPainterGroup * fResponderGroup
the responder group
Basic attributes shared by all painters.
virtual Bool_t IsIncluded() const =0
Whether or not the part of the detector represented by this painter should be included in readout...
Int_t fLineColor
our outline color
void WriteIROC(Double_t value)
Bool_t IsInside(Double_t x, Double_t y) const
void SetData(const char *pattern, AliMUONVTrackerData *data, Int_t dataIndex)
void DrawInternalHistogramClone1()
SL.
void DoubleClicked(AliMUONVPainter *painter, Double_t *pos)
A group of AliMUONVPainter.
virtual TString NameAtPosition(Double_t, Double_t) const
Return specific name at a given position, if needed.
AliMUONPainterGroup * PlotterGroup() const
Return the plotter group.
virtual TCollection * Children() const
void GetIROCManuList(TObjArray &manuList)
virtual void SetAttributes(const AliMUONAttPainter &attributes)
Base class for MUON data that can be presented at different levels in the hierarchy of the MUON syste...
void DrawInternalHistogramClone7()
SL.
AliMUONAttPainter fAttributes
our attributes (e.g. view type)
virtual void Paint(Option_t *opt="")
Double_t fBorderFactor
border factor for visu
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
void DrawInternalHistogramClone0()
void DrawInternalHistogramClone9()
SL.
void SetMotherGroup(AliMUONPainterGroup *group)
Set our mother group.
AliMUONVPainter & operator=(const AliMUONVPainter &rhs)
virtual void DrawHistogram(Double_t *values=0x0) const