]>
Commit | Line | Data |
---|---|---|
6f04ebee | 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 | Line(const Text_t* name, TTree* tree, TreeVarType_e tv_type=TVT_XYZ); | |
31 | virtual ~Line(); | |
32 | ||
33 | virtual void SetMarkerColor(Color_t col) | |
34 | { TAttMarker::SetMarkerColor(col); } | |
35 | virtual void SetLineColor(Color_t col) | |
36 | { SetMainColor(col); } | |
37 | ||
38 | Bool_t GetRnrLine() const { return fRnrLine; } | |
39 | void SetRnrLine(Bool_t r) { fRnrLine = r; } | |
40 | Bool_t GetRnrPoints() const { return fRnrPoints; } | |
41 | void SetRnrPoints(Bool_t r) { fRnrPoints = r; } | |
42 | ||
43 | ClassDef(Line, 1); | |
44 | }; // endclass Line | |
45 | ||
46 | } | |
47 | ||
48 | #endif |