First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpZonePainter.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
13985652 5// $MpId: AliMpZonePainter.h,v 1.8 2006/05/24 13:58:13 ivana Exp $
dee1d5f1 6
0145e89a 7/// \ingroup mpgraphics
dee1d5f1 8/// \class AliMpZonePainter
9/// \brief Class for drawing a zone into canvas
10///
13985652 11/// \author David Guez, IPN Orsay
5f91c9e8 12
2998a151 13#ifndef ALI_MP_ZONE_PAINTER_H
14#define ALI_MP_ZONE_PAINTER_H
5f91c9e8 15
16#include "AliMpVPainter.h"
17
18class AliMpZone;
19
20class AliMpZonePainter : public AliMpVPainter
21{
22 public:
23 AliMpZonePainter();
24 AliMpZonePainter(AliMpZone *zone);
2998a151 25 virtual ~AliMpZonePainter();
26
fb1bf5c0 27 virtual void DumpObject(); //-MENU-
5f91c9e8 28 virtual void Draw(Option_t *option);
29 virtual void Paint(Option_t *option);
30 // get/set methods
31
32 virtual TVector2 GetPosition() const;
33 virtual TVector2 GetDimensions() const;
34 virtual Int_t DistancetoPrimitive(Int_t x, Int_t y);
fb1bf5c0 35
13e7956b 36 private:
f5671fc3 37 /// Not implemented
fb1bf5c0 38 AliMpZonePainter(const AliMpZonePainter& right);
f5671fc3 39 /// Not implemented
fb1bf5c0 40 AliMpZonePainter& operator = (const AliMpZonePainter& right);
41
829425a5 42 AliMpZone *fZone; ///< the zone to draw
43
5f91c9e8 44 ClassDef(AliMpZonePainter,1) // Zone painter
45};
2998a151 46#endif //ALI_MP_ZONE_PAINTER_H