|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RContourBaseEllipse.hh>
Public Member Functions | |
| RContourBaseEllipse () | |
| RContourBaseEllipse (const Double_t a, const Double_t b) | |
| RContourBaseEllipse (const RPoint2D ctr, const Double_t a, const Double_t b) | |
| RContourBaseEllipse (const Double_t a, const Double_t b, const Double_t angle) | |
| RContourBaseEllipse (const RPoint2D ctr, const Double_t a, const Double_t b, const Double_t angle) | |
| RContourBaseEllipse (const RPoint2D ctr, const RVector2D xa, const RVector2D yb) | |
| RContourBaseEllipse (const RContourBaseEllipse &ct) | |
| RContourBaseEllipse & | operator= (const RContourBaseEllipse &ct) |
| virtual | ~RContourBaseEllipse () |
| 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 Double_t | NormalisedDistance (const RPoint2D &p) const |
| virtual Double_t | GetAngle () const |
| virtual RVector2D | GetAxisA () const |
| virtual RVector2D | GetAxisB () const |
| virtual RPoint2D | GetCenter () const |
| virtual Double_t | GetRadiusA () const |
| virtual Double_t | GetRadiusB () const |
| virtual void | SetCenter (const RPoint2D ctr) |
| ClassDef (RContourBaseEllipse, 0) | |
Public Member Functions inherited from RContourBase2D | |
| 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) | |
Public Member Functions inherited from RContourBase | |
| 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) | |
Public Member Functions inherited from RAffine2D | |
| RAffine2D () | |
| RAffine2D (const RMatrix2D &m) | |
| RAffine2D (const RVector2D &t, const RMatrix2D &m=RMatrix2D::id) | |
| RAffine2D (const RVector2D &v0, const RVector2D &v1, const RVector2D &v2, const RMatrixDef type=axisVector) | |
| RAffine2D (const RAffine2D &a) | |
| RAffine2D & | operator= (const RAffine2D &a) |
| RAffine2D & | operator= (const RMatrix2D &m) |
| RAffine2D & | operator= (const RVector2D &v) |
| virtual | ~RAffine2D () |
| virtual RMatrix2D | GetMatrix () const |
| virtual RVector2D | GetTranslation () const |
| virtual RVector2D | GetVector () const |
| virtual RPoint2D | GetOrigin () const |
| virtual void | SetOrigin (const RPoint2D ctr) |
| virtual void | SetAxis (const u_int n, const RPoint2D v) |
| RAffine2D | Inverse () const |
| RVector2D | Transform (const RVector2D &v) const |
| RAffine2D | operator+ () const |
| RAffine2D | operator- () const |
| RAffine2D | operator+= (const RAffine2D &t) |
| RAffine2D | operator-= (const RAffine2D &t) |
| RAffine2D | operator*= (const RAffine2D &t) |
| RAffine2D | operator*= (const Double_t r) |
| RAffine2D | operator/= (const Double_t r) |
| RAffine2D | operator+ (const RAffine2D &t) const |
| RAffine2D | operator- (const RAffine2D &t) const |
| RAffine2D | operator* (const RAffine2D &t) const |
| RVector2D | operator* (const RVector2D &v) const |
| RAffine2D | operator* (const Double_t r) const |
| RAffine2D | operator/ (const Double_t r) const |
| ClassDef (RAffine2D, 0) | |
Public Member Functions inherited from RMatrix2D | |
| RMatrix2D (const Double_t diag=1.) | |
| RMatrix2D (const Double_t m00, const Double_t m01, const Double_t m10, const Double_t m11) | |
| RMatrix2D (const RVector2D v1, const RVector2D v2, const RMatrixDef type=columnVector) | |
| RMatrix2D (const RMatrix2D &m) | |
| virtual RVector2D | operator[] (const u_int n) const |
| virtual RVector2D | GetColumn (const u_int n) const |
| virtual RVector2D | GetLine (const u_int n) const |
| virtual RVector2D | GetAxis (const u_int n) const |
| virtual void | SetColumn (const u_int n, const RPoint2D v) |
| virtual void | SetLine (const u_int n, const RPoint2D v) |
| Double_t | Determinant () const |
| RMatrix2D | Inverse () const |
| RVector2D | Transform (const RVector2D &v) const |
| RMatrix2D | operator+ () const |
| RMatrix2D | operator- () const |
| RMatrix2D | operator+= (const RMatrix2D &m) |
| RMatrix2D | operator-= (const RMatrix2D &m) |
| RMatrix2D | operator*= (const RMatrix2D &m) |
| RMatrix2D | operator*= (const Double_t r) |
| RMatrix2D | operator/= (const Double_t r) |
| RMatrix2D | operator+ (const RMatrix2D &m) const |
| RMatrix2D | operator- (const RMatrix2D &m) const |
| RMatrix2D | operator* (const RMatrix2D &m) const |
| RVector2D | operator* (const RVector2D &v) const |
| RMatrix2D | operator* (const Double_t r) const |
| RMatrix2D | operator/ (const Double_t r) const |
| ClassDef (RMatrix2D, 0) | |
Static Public Member Functions | |
| static RContourBaseEllipse * | ReadNew (istream &is) |
| static RContourBaseEllipse * | ReadNew (FILE *fptr) |
Static Public Member Functions inherited from RContourBase | |
| static RContourBase * | ReadNew (istream &is) |
| static RContourBase * | ReadNew (FILE *fptr) |
Static Public Member Functions inherited from RMatrix2D | |
| static RMatrix2D | Rotation (const Double_t angle) |
Private Member Functions | |
| GObject (RContourBaseEllipse) | |
Additional Inherited Members | |
Public Types inherited from RMatrix2D | |
| enum | RMatrixDef { columnVector = 0, lineVector = 1, axisVector = 2 } |
| Interprétation des vecteurs à la création d'une matrice. More... | |
Static Public Attributes inherited from RMatrix2D | |
| static const RMatrix2D | null = RMatrix2D(0.) |
| Matrice nulle. | |
| static const RMatrix2D | id = RMatrix2D(1.) |
| Matrice identité | |
| static const Double_t | zero = RVector2D::zero |
| Limites de test du zéro | |
Protected Attributes inherited from RContourBase | |
| bool | flip_axis |
| Axis inversion. | |
Protected Attributes inherited from RAffine2D | |
| RVector2D | tr |
| Translation vector (new center) | |
Protected Attributes inherited from RMatrix2D | |
| Double_t | me [4] |
| Eléménts de matrice. | |
Class for ellipse contour parameters. An ellipse is defined here as a circle in a frame transformation. Then the condition for beeing inside is simply x*x + y*y <= 1 in the modified frame (see Ellipse).
Center and axis are defined with the RAffine2D transform base class.
| RContourBaseEllipse::RContourBaseEllipse | ( | ) |
Default constructor: circle with center (0,0) and radius 1.
Referenced by ReadNew().
| RContourBaseEllipse::RContourBaseEllipse | ( | const Double_t | a, |
| const Double_t | b | ||
| ) |
Ellipse contour data: center (0,0), principal axis a and b along X and Y directions.
| a | radius along X |
| b | radius along Y |
| RContourBaseEllipse::RContourBaseEllipse | ( | const RPoint2D | ctr, |
| const Double_t | a, | ||
| const Double_t | b | ||
| ) |
Ellipse contour data: center ctr, principal axis a and b along X and Y directions.
| ctr | ellipse center |
| a | radius along X |
| b | radius along Y |
| RContourBaseEllipse::RContourBaseEllipse | ( | const Double_t | a, |
| const Double_t | b, | ||
| const Double_t | angle | ||
| ) |
Ellipse contour data: center (0,0), principal axis a and b with rotation angle with respect to (X,Y) frame.
| a | radius along X before rotation |
| b | radius along Y before rotation |
| angle | rotation angle |
| RContourBaseEllipse::RContourBaseEllipse | ( | const RPoint2D | ctr, |
| const Double_t | a, | ||
| const Double_t | b, | ||
| const Double_t | angle | ||
| ) |
Ellipse contour data: center ctr, principal axis a and b with rotation angle with respect to (X,Y) frame.
| ctr | ellipse center |
| a | radius along X before rotation |
| b | radius along Y before rotation |
| angle | rotation angle |
| RContourBaseEllipse::RContourBaseEllipse | ( | const RPoint2D | ctr, |
| const RVector2D | xa, | ||
| const RVector2D | yb | ||
| ) |
Ellipse contour corresponding to a circle in the new frame with center and axis given as arguments.
| ctr | ellipse center |
| xa | new axis vector |
| yb | new axis vector |
| RContourBaseEllipse::RContourBaseEllipse | ( | const RContourBaseEllipse & | ct | ) |
Copy constructor.
| ct | contour to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
| RContourBaseEllipse & RContourBaseEllipse::operator= | ( | const RContourBaseEllipse & | ct | ) |
Affectation operator.
| ct | contour to copy |
|
virtual |
Comparison function, operating only on content, not on name.
| ct_ptr | pointer to compared contour |
Implements RContourBase.
References GetAngle(), GetAxisA(), GetAxisB(), GetCenter(), RVector2D::Length(), 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, GetAngle(), GetCenter(), GetRadiusA(), and GetRadiusB().
|
virtual |
Write contour data in an output C++ stream.
| os | output C++ stream |
Implements RContourBase.
References GetAngle(), GetCenter(), GetRadiusA(), and GetRadiusB().
|
virtual |
Write contour data in an output C-style file.
| fptr | C-style file pointer |
Implements RContourBase.
References GetAngle(), GetCenter(), GetRadiusA(), and GetRadiusB().
|
static |
Read contour data from an input C++ stream, and return the allocated pointer.
| is | input C++ stream |
References RContourBaseEllipse().
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 RContourBaseEllipse().
|
inlinevirtual |
Check whether a point (x,y) is inside a contour.
| x | point X position |
| y | point Y position |
Reimplemented from RContourBase2D.
|
inlinevirtual |
Check whether a point is inside a contour.
| p | point |
Implements RContourBase2D.
References RAffine2D::Transform().
|
inlinevirtual |
Return contour type identifier.
Implements RContourBase.
|
inlinevirtual |
Return contour type name.
Implements RContourBase.
|
inlinevirtual |
Get normalized distance (expressed in radii units) between a point and the ellipse center: from 0 (at center) to 1 (on ellipse) and more than 1 outside.
| p | point |
References RAffine2D::Transform().
|
virtual |
Compute rotation (or tilt) angle of the ellipse, with respect to (X,Y) frame.
References GetAxisA(), RVector2D::X(), RVector2D::Y(), and RMatrix2D::zero.
Referenced by Compare(), CreateObjectList(), RGContourEdit::UpdateContourInfo(), and WriteData().
|
virtual |
Compute first principal radius vector.
References RMatrix2D::Determinant(), RMatrix2D::GetLine(), and RMatrix2D::zero.
Referenced by Compare(), GetAngle(), and GetRadiusA().
|
virtual |
Compute second principal radius vector.
References RMatrix2D::Determinant(), RMatrix2D::GetLine(), and RMatrix2D::zero.
Referenced by Compare(), and GetRadiusB().
|
inlinevirtual |
Get ellipse center.
References RAffine2D::GetOrigin().
Referenced by Compare(), CreateObjectList(), and WriteData().
|
inlinevirtual |
Get first principal radius.
References GetAxisA().
Referenced by CreateObjectList(), RGContourEdit::UpdateContourInfo(), and WriteData().
|
inlinevirtual |
Get second principal radius.
References GetAxisB().
Referenced by CreateObjectList(), RGContourEdit::UpdateContourInfo(), and WriteData().
|
inlinevirtual |
| RContourBaseEllipse::ClassDef | ( | RContourBaseEllipse | , |
| 0 | |||
| ) |
For ROOT dictionary.