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"
23 /// \class AliMUONPainterHighlighter
25 /// A special painter which highlights another one.
26 /// Highlighting is currently a bold yellow outline of the relevant painter
28 /// \author Laurent Aphecetche, Subatech
32 ClassImp(AliMUONPainterHighlighter)
35 //_____________________________________________________________________________
36 AliMUONPainterHighlighter::AliMUONPainterHighlighter()
37 : TObject(), fPainter(0x0), fX(FLT_MAX), fY(FLT_MAX)
42 //_____________________________________________________________________________
43 AliMUONPainterHighlighter::~AliMUONPainterHighlighter()
48 //_____________________________________________________________________________
50 AliMUONPainterHighlighter::SetPainter(AliMUONVPainter* painter, Double_t x, Double_t y)
52 /// Set the painte we should highlight
54 AliDebug(1,Form("painter=%s x=%e y=%e",(painter ? painter->GetName() : ""),x,y));
60 //_____________________________________________________________________________
62 AliMUONPainterHighlighter::Paint(Option_t*)
64 /// Actually highlight our painter, if we have one
67 AliDebug(1,Form("painter=%s fX=%e fY=%e",fPainter->GetName(),fX,fY));
68 fPainter->PaintOutline(5,5,fX,fY);