JG ROOT Tools libraries  version 5.0 - august 2014
RContourList.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RContourList.hh
3  *
4  * Include file for class RContourList
5  */
6 //======================================================================
7 
8 #ifndef R_CONTOUR_LIST_HH
9 #define R_CONTOUR_LIST_HH
10 
11 #include "GVectorT.hh"
12 #include "GNamed.hh"
13 #include "GNamedListT.hh"
14 #include "RContour.hh"
15 
16 ///! File beginning of contour list identifier
17 #define R_CONTOUR_LIST_ID_FILE_BEGIN "<<< CONTOUR LIST BEGIN >>>"
18 
19 ///! File end of contour list identifier
20 #define R_CONTOUR_LIST_ID_FILE_END "<<< CONTOUR LIST END >>>"
21 
22 //======================================================================
23 /*! \class RContourList
24  *
25  * Class defining a list of contours.
26  * The contours are own by the list, and deleted when removed.
27  */
28 class RContourList : public GNamedListT<RContour>
29 {
30  //------------------------------------------------------------
31  /*! \object_doc{RContourList} */
33  //------------------------------------------------------------
34 
35  ///! Contour list iterator local definition
36  typedef GListIterT<RContour> iterator;
37 
38  protected:
39 
40  //------------------------------------------------------------
41  // Constructors / affectation / destructor
42  public:
43  RContourList ( const u_int fl = gcollection::gUniqueName );
44  RContourList ( const RContourList &original, const u_int fl = gcollection::gUniqueName );
45 
46  virtual ~RContourList ( );
47 
48  //------------------------------------------------------------
49  virtual RContour * GetContourPtr ( Int_t ct_num );
50 
51  virtual void SetLineAtt ( const TAttLine l_att, Int_t ct_num = -1 );
52  virtual void SetLineAtt ( Color_t c, Style_t s = 1, Width_t w = 1, Int_t ct_num = -1 );
53 
54  virtual void Draw ( Int_t ct_num = -1 );
55  virtual void DrawCopy ( Int_t ct_num = -1 );
56 
57  //------------------------------------------------------------
58  // Read / write functions
59 
60  virtual Int_t Write ( const string &filename ) const;
61  virtual Int_t Read ( const string &filename, const u_int append = false );
62 
63  //------------------------------------------------------------
64  // Surcharge des fonctions de liste
65  /*
66  virtual GListIterT<RContour> Add ( const RContour &ctr );
67  virtual GListIterT<RContour> Insert ( const RContour &ctr );
68  virtual GListIterT<RContour> Prepend ( const RContour &ctr );
69  virtual GListIterT<RContour> Append ( const RContour &ctr );
70  */
71 
72  public:
73  //------------------------------------------------------------
74  /*! For ROOT dictionary.*/
76 };
77 
78 //----------------------------------------------------------------------
79 // Inline functions
80 #include "icc/RContourList.icc"
81 
82 //======================================================================
83 #endif
RContourList(const u_int fl=gcollection::gUniqueName)
Definition: RContourList.cpp:17
virtual Int_t Write(const string &filename) const
Definition: RContourList.cpp:46
Definition: RContourList.hh:28
GObject(RContourList)
virtual Int_t Read(const string &filename, const u_int append=false)
Definition: RContourList.cpp:79
virtual ~RContourList()
Definition: RContourList.cpp:33
ClassDef(RContourList, 0)
virtual void Draw(Int_t ct_num=-1)
Definition: RContourList.cpp:157
virtual RContour * GetContourPtr(Int_t ct_num)
Definition: RContourList.icc:11
GListIterT< RContour > iterator
! Contour list iterator local definition
Definition: RContourList.hh:36
virtual void DrawCopy(Int_t ct_num=-1)
Definition: RContourList.cpp:178
virtual void SetLineAtt(const TAttLine l_att, Int_t ct_num=-1)
Definition: RContourList.cpp:136
Definition: RContour.hh:25