LCOV - code coverage report
Current view: top level - MUON/MUONgraphics - AliMUONPainterHighlighter.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 14 7.1 %
Date: 2016-06-14 17:26:59 Functions: 1 8 12.5 %

          Line data    Source code
       1             : /**************************************************************************
       2             : * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             : *                                                                        *
       4             : * Author: The ALICE Off-line Project.                                    *
       5             : * Contributors are mentioned in the code where appropriate.              *
       6             : *                                                                        *
       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             : **************************************************************************/
      15             : 
      16             : // $Id$
      17             : 
      18             : #include "AliMUONPainterHighlighter.h"
      19             : 
      20             : #include "AliMUONVPainter.h"
      21             : #include "AliLog.h"
      22             : 
      23             : /// \class AliMUONPainterHighlighter
      24             : ///
      25             : /// A special painter which highlights another one.
      26             : /// Highlighting is currently a bold yellow outline of the relevant painter
      27             : ///
      28             : /// \author Laurent Aphecetche, Subatech
      29             : ///
      30             : 
      31             : ///\cond CLASSIMP
      32          12 : ClassImp(AliMUONPainterHighlighter)
      33             : ///\endcond
      34             : 
      35             : //_____________________________________________________________________________
      36             : AliMUONPainterHighlighter::AliMUONPainterHighlighter()
      37           0 : : TObject(), fPainter(0x0), fX(FLT_MAX), fY(FLT_MAX)
      38           0 : {
      39             :   /// ctor
      40           0 : }
      41             : 
      42             : //_____________________________________________________________________________
      43             : AliMUONPainterHighlighter::~AliMUONPainterHighlighter()
      44           0 : {
      45             :   /// dtor
      46           0 : }
      47             : 
      48             : //_____________________________________________________________________________
      49             : void 
      50             : AliMUONPainterHighlighter::SetPainter(AliMUONVPainter* painter, Double_t x, Double_t y)
      51             : {
      52             :   /// Set the painte we should highlight
      53             :   
      54           0 :   fPainter = painter;
      55           0 :   fX = x;
      56           0 :   fY = y;
      57           0 : }
      58             : 
      59             : //_____________________________________________________________________________
      60             : void 
      61             : AliMUONPainterHighlighter::Paint(Option_t*)
      62             : {
      63             :   /// Actually highlight our painter, if we have one
      64           0 :   if ( fPainter ) 
      65             :   {
      66           0 :     fPainter->PaintOutline(5,5,fX,fY);
      67           0 :   }
      68           0 : }

Generated by: LCOV version 1.11