JG ROOT Tools libraries  version 5.0 - august 2014
RContourBasePolygon.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RContourBasePolygon.hh
3  *
4  * Include file for class RContourBasePolygon
5  */
6 //======================================================================
7 
8 #ifndef R_CONTOUR_BASE_POLYGON_HH
9 #define R_CONTOUR_BASE_POLYGON_HH
10 
11 #include "RContourBase2D.hh"
12 #include "RContour.hh"
13 
14 
15 //======================================================================
16 /*! \class RContourBasePolygon
17  *
18  * Class for polygon contour parameters.
19  */
20 
22 {
23  //------------------------------------------------------------
24  /*! \object_doc{RContourBasePolygon} */
26  //------------------------------------------------------------
27 
28  protected:
29 
30  UInt_t points_num; ///< Number of points
31  RPoint2D * points_ptr; ///< Array of points
32 
33  //------------------------------------------------------------
34  // Constructors / affectation / destructor
35  public:
36 
38  RContourBasePolygon ( const UInt_t n, const Double_t r = 1. );
39  RContourBasePolygon ( const UInt_t n, const RPoint2D *pts );
40  RContourBasePolygon ( const UInt_t n, const Double_t x[], const Double_t y[] );
42 
44 
45  virtual ~RContourBasePolygon ( );
46 
47  //------------------------------------------------------------
48  // contour comparison
49  virtual bool Compare ( const RContourBase * ct_ptr ) const;
50 
51  // creation of associated ROOT objects list
52  virtual TList * CreateObjectList ( ) const;
53 
54  //------------------------------------------------------------
55  // Read / write functions
56 
57  virtual bool WriteData ( ostream &os ) const;
58  virtual bool WriteData ( FILE *fptr ) const;
59 
60  static RContourBasePolygon * ReadNew ( istream &is );
61  static RContourBasePolygon * ReadNew ( FILE *fptr );
62 
63  //------------------------------------------------------------
64  virtual bool CheckPoint ( const Double_t x, const Double_t y ) const;
65  virtual bool CheckPoint ( const RPoint2D &p ) const;
66  virtual Int_t Type ( ) const;
67  virtual string TypeName ( ) const;
68 
69 
70  virtual UInt_t GetPointsNumber ( ) const;
71  virtual RPoint2D GetPoint ( const UInt_t n ) const;
72  virtual void SetPoint ( const UInt_t n, const RPoint2D &p );
73 
74  public:
75  //------------------------------------------------------------
76  /*! For ROOT dictionary.*/
78 };
79 
80 //----------------------------------------------------------------------
81 // Inline functions
83 
84 //======================================================================
85 #endif
virtual bool Compare(const RContourBase *ct_ptr) const
Definition: RContourBasePolygon.cpp:182
virtual Int_t Type() const
Definition: RContourBasePolygon.icc:26
Definition: RContourBasePolygon.hh:21
virtual void SetPoint(const UInt_t n, const RPoint2D &p)
Definition: RContourBasePolygon.icc:22
RContourBasePolygon & operator=(const RContourBasePolygon &ct)
Definition: RContourBasePolygon.cpp:111
virtual UInt_t GetPointsNumber() const
Definition: RContourBasePolygon.icc:9
ClassDef(RContourBasePolygon, 0)
virtual RPoint2D GetPoint(const UInt_t n) const
Definition: RContourBasePolygon.icc:15
UInt_t points_num
Number of points.
Definition: RContourBasePolygon.hh:30
Definition: RVector2D.hh:26
virtual bool CheckPoint(const Double_t x, const Double_t y) const
Definition: RContourBasePolygon.icc:37
virtual bool WriteData(ostream &os) const
Definition: RContourBasePolygon.cpp:250
virtual ~RContourBasePolygon()
Definition: RContourBasePolygon.cpp:134
RContourBasePolygon()
Definition: RContourBasePolygon.cpp:17
Definition: RContourBase2D.hh:20
Definition: RContourBase.hh:19
GObject(RContourBasePolygon)
virtual string TypeName() const
Definition: RContourBasePolygon.icc:30
virtual TList * CreateObjectList() const
Definition: RContourBasePolygon.cpp:210
RPoint2D * points_ptr
Array of points.
Definition: RContourBasePolygon.hh:31
static RContourBasePolygon * ReadNew(istream &is)
Definition: RContourBasePolygon.cpp:299