]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/Line.h
Record changes.
[u/mrichter/AliRoot.git] / EVE / Reve / Line.h
1 // $Header$
2
3 #ifndef REVE_Line_H
4 #define REVE_Line_H
5
6 #include <Reve/Reve.h>
7 #include <Reve/PointSet.h>
8
9 #include <TAttLine.h>
10
11 namespace Reve {
12
13 class Line : public PointSet,
14              public TAttLine
15 {
16   friend class LineEditor;
17   friend class LineGL;
18
19 private:
20   Line(const Line&);            // Not implemented
21   Line& operator=(const Line&); // Not implemented
22
23 protected:
24   Bool_t  fRnrLine;
25   Bool_t  fRnrPoints;
26
27 public:
28   Line(Int_t n_points=0, TreeVarType_e tv_type=TVT_XYZ);
29   Line(const Text_t* name, Int_t n_points=0, TreeVarType_e tv_type=TVT_XYZ);
30   virtual ~Line();
31
32   virtual void SetMarkerColor(Color_t col)
33   { TAttMarker::SetMarkerColor(col); }
34   virtual void SetLineColor(Color_t col)
35   { SetMainColor(col); }
36
37   Bool_t GetRnrLine() const   { return fRnrLine;   }
38   void SetRnrLine(Bool_t r)   { fRnrLine = r;      }
39   Bool_t GetRnrPoints() const { return fRnrPoints; }
40   void SetRnrPoints(Bool_t r) { fRnrPoints = r;    }
41
42   ClassDef(Line, 1);
43 }; // endclass Line
44
45 }
46
47 #endif