JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RContourBasePolygon.hh>
Public Member Functions | |
RContourBasePolygon () | |
RContourBasePolygon (const UInt_t n, const Double_t r=1.) | |
RContourBasePolygon (const UInt_t n, const RPoint2D *pts) | |
RContourBasePolygon (const UInt_t n, const Double_t x[], const Double_t y[]) | |
RContourBasePolygon (const RContourBasePolygon &ct) | |
RContourBasePolygon & | operator= (const RContourBasePolygon &ct) |
virtual | ~RContourBasePolygon () |
virtual bool | Compare (const RContourBase *ct_ptr) const |
virtual TList * | CreateObjectList () const |
virtual bool | WriteData (ostream &os) const |
virtual bool | WriteData (FILE *fptr) const |
virtual bool | CheckPoint (const Double_t x, const Double_t y) const |
virtual bool | CheckPoint (const RPoint2D &p) const |
virtual Int_t | Type () const |
virtual string | TypeName () const |
virtual UInt_t | GetPointsNumber () const |
virtual RPoint2D | GetPoint (const UInt_t n) const |
virtual void | SetPoint (const UInt_t n, const RPoint2D &p) |
ClassDef (RContourBasePolygon, 0) | |
![]() | |
RContourBase2D () | |
RContourBase2D (const RContourBase2D &ct) | |
RContourBase2D & | operator= (const RContourBase2D &ct) |
virtual | ~RContourBase2D () |
virtual bool | CheckValue (const Double_t val) const |
virtual Int_t | Dimension () const |
ClassDef (RContourBase2D, 0) | |
![]() | |
RContourBase () | |
RContourBase (const RContourBase &ct) | |
RContourBase & | operator= (const RContourBase &ct) |
virtual | ~RContourBase () |
virtual bool | operator== (const RContourBase &ct) const |
virtual bool | operator!= (const RContourBase &ct) const |
virtual void | SetFlipAxis (const bool flip=true) |
virtual bool | GetFlipAxis () const |
virtual bool | Write (ostream &os) const |
virtual bool | Write (FILE *fptr) const |
ClassDef (RContourBase, 0) | |
Static Public Member Functions | |
static RContourBasePolygon * | ReadNew (istream &is) |
static RContourBasePolygon * | ReadNew (FILE *fptr) |
![]() | |
static RContourBase * | ReadNew (istream &is) |
static RContourBase * | ReadNew (FILE *fptr) |
Protected Attributes | |
UInt_t | points_num |
Number of points. | |
RPoint2D * | points_ptr |
Array of points. | |
![]() | |
bool | flip_axis |
Axis inversion. | |
Private Member Functions | |
GObject (RContourBasePolygon) | |
Additional Inherited Members |
Class for polygon contour parameters.
RContourBasePolygon::RContourBasePolygon | ( | ) |
RContourBasePolygon::RContourBasePolygon | ( | const UInt_t | n, |
const Double_t | r = 1. |
||
) |
Construction of a regular polygon.
n | points number |
r | radius of circle containing the polygon |
References points_num, and points_ptr.
RContourBasePolygon::RContourBasePolygon | ( | const UInt_t | n, |
const RPoint2D * | pts | ||
) |
Constructor from points array.
n | points number |
pts | points array |
References points_num, and points_ptr.
RContourBasePolygon::RContourBasePolygon | ( | const UInt_t | n, |
const Double_t | x[], | ||
const Double_t | y[] | ||
) |
Constructor from points coordinates arrays.
n | points number |
x | points X positions array |
y | points Y positions array |
References points_num, and points_ptr.
RContourBasePolygon::RContourBasePolygon | ( | const RContourBasePolygon & | ct | ) |
|
virtual |
Destructor.
References points_num, and points_ptr.
|
private |
Macro from GCpp library that defines the following functions:
RContourBasePolygon & RContourBasePolygon::operator= | ( | const RContourBasePolygon & | ct | ) |
|
virtual |
Comparison function, operating only on content, not on name.
ct_ptr | pointer to compared contour |
Implements RContourBase.
References GetPoint(), GetPointsNumber(), RContourBase::Type(), and RVector2D::zero.
|
virtual |
Creation of associated ROOT objects list: a new list is created (allocated) and its pointer is returned.
Implements RContourBase.
References RContourBase::flip_axis, GetPoint(), and GetPointsNumber().
|
virtual |
Write contour data in an output C++ stream.
os | output C++ stream |
Implements RContourBase.
References GetPoint(), and GetPointsNumber().
|
virtual |
Write contour data in an output C-style file.
fptr | C-style file pointer |
Implements RContourBase.
References GetPoint(), and GetPointsNumber().
|
static |
Read contour data from an input C++ stream, and return the allocated pointer.
is | input C++ stream |
References RContourBasePolygon().
Referenced by RContourBase::ReadNew().
|
static |
Read contour data from an input C-style file, and return the allocated pointer.
fptr | input C-style file pointer |
References RContourBasePolygon(), and SetPoint().
|
inlinevirtual |
Check whether a point (x,y) is inside a contour.
x | point X position |
y | point Y position |
Reimplemented from RContourBase2D.
|
virtual |
Check whether a point is inside a contour.
p | point |
Implements RContourBase2D.
References RVector2D::Angle(), points_num, and points_ptr.
|
inlinevirtual |
Return contour type identifier.
Implements RContourBase.
|
inlinevirtual |
Return contour type name.
Implements RContourBase.
|
inlinevirtual |
Get number of points in the contour.
References points_num.
Referenced by Compare(), CreateObjectList(), and WriteData().
|
inlinevirtual |
Get a point from the contour.
n | point number |
References points_num, and points_ptr.
Referenced by Compare(), CreateObjectList(), and WriteData().
|
inlinevirtual |
Set a point from the contour.
n | point number |
p | point data |
References points_num, and points_ptr.
Referenced by ReadNew(), and RGContourEdit::UpdateContour().
RContourBasePolygon::ClassDef | ( | RContourBasePolygon | , |
0 | |||
) |
For ROOT dictionary.