1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliMUONPainterHighlighter.h"
20 #include "AliMUONVPainter.h"
21 #include "AliMUONPainterContour.h"
24 /// \class AliMUONPainterHighlighter
26 /// A special painter which highlights another one.
27 /// Highlighting is currently a bold yellow outline of the relevant painter
29 /// \author Laurent Aphecetche, Subatech
33 ClassImp(AliMUONPainterHighlighter)
36 //_____________________________________________________________________________
37 AliMUONPainterHighlighter::AliMUONPainterHighlighter()
38 : TObject(), fPainter(0x0), fX(FLT_MAX), fY(FLT_MAX)
43 //_____________________________________________________________________________
44 AliMUONPainterHighlighter::~AliMUONPainterHighlighter()
49 //_____________________________________________________________________________
51 AliMUONPainterHighlighter::SetPainter(AliMUONVPainter* painter, Double_t x, Double_t y)
53 /// Set the painte we should highlight
55 AliDebug(1,Form("painter=%s x=%e y=%e",(painter ? painter->GetName() : ""),x,y));
61 //_____________________________________________________________________________
63 AliMUONPainterHighlighter::Paint(Option_t*)
65 /// Actually highlight our painter, if we have one
68 AliDebug(1,Form("painter=%s fX=%e fY=%e",fPainter->GetName(),fX,fY));
69 fPainter->PaintOutline(5,5,fX,fY);