]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpMotifPainter.h
new functionality and new class added
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifPainter.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5 // $MpId: AliMpMotifPainter.h,v 1.8 2006/05/24 13:58:13 ivana Exp $
6
7 /// \ingroup mpgraphics
8 /// \class AliMpMotifPainter
9 /// \brief Class for drawing a motif into canvas
10 ///
11 /// \author David Guez, IPN Orsay
12
13 #ifndef ALI_MP_MOTIF_PAINTER_H
14 #define ALI_MP_MOTIF_PAINTER_H
15
16 #include "AliMpVPainter.h"
17
18 class AliMpMotifPosition;
19 class AliMpMotifType;
20
21 class AliMpMotifPainter : public AliMpVPainter
22 {
23  public:
24   AliMpMotifPainter();
25   AliMpMotifPainter(AliMpMotifType* motifType);
26   AliMpMotifPainter(AliMpMotifPosition *motifPos);
27   virtual ~AliMpMotifPainter();
28   
29   virtual void DumpObject(); //-MENU-
30   virtual void Paint(Option_t *option);
31   virtual TVector2 GetPosition() const;
32   virtual TVector2 GetDimensions() const;
33
34  private:
35   /// Not implemented
36   AliMpMotifPainter(const AliMpMotifPainter& right);
37   /// Not implemented
38   AliMpMotifPainter&  operator = (const AliMpMotifPainter& right);
39
40   void PaintContour(Option_t* option, Bool_t fill);
41
42   AliMpMotifPosition *fMotifPos; ///< the motif to draw
43   
44   ClassDef(AliMpMotifPainter,1) // Motif painter
45 };
46 #endif //ALI_MP_MOTIF_PAINTER_H