JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RContourBase.hh>
Public Member Functions | |
RContourBase () | |
RContourBase (const RContourBase &ct) | |
RContourBase & | operator= (const RContourBase &ct) |
virtual | ~RContourBase () |
virtual bool | Compare (const RContourBase *ct_ptr) const =0 |
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 | CheckPoint (const Double_t x, const Double_t y) const |
virtual bool | CheckPoint (const RPoint2D &p) const =0 |
virtual bool | CheckValue (const Double_t val) const =0 |
virtual Int_t | Dimension () const =0 |
virtual Int_t | Type () const =0 |
virtual string | TypeName () const =0 |
virtual bool | Write (ostream &os) const |
virtual bool | Write (FILE *fptr) const |
virtual TList * | CreateObjectList () const =0 |
ClassDef (RContourBase, 0) | |
Static Public Member Functions | |
static RContourBase * | ReadNew (istream &is) |
static RContourBase * | ReadNew (FILE *fptr) |
Protected Member Functions | |
virtual bool | WriteData (ostream &os) const =0 |
virtual bool | WriteData (FILE *fptr) const =0 |
Protected Attributes | |
bool | flip_axis |
Axis inversion. | |
Private Member Functions | |
GObjectV (RContourBase) | |
Base class for 1D and 2D contours definition.
RContourBase::RContourBase | ( | ) |
Default constructor.
References flip_axis.
RContourBase::RContourBase | ( | const RContourBase & | ct | ) |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
RContourBase & RContourBase::operator= | ( | const RContourBase & | ct | ) |
|
pure virtual |
Abstract function for contours comparison operators.
ct_ptr | contour pointer |
Implemented in RContourBaseEllipse, RContourBaseGate, RContourBasePolygon, and RContourBaseCircle.
Referenced by operator!=(), and operator==().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Set X/Y axis inversion for contour.
flip | inversion status |
References flip_axis.
Referenced by RGContourEdit::GateFlipHVButton(), and RContour::SetFlipAxis().
|
inlinevirtual |
Get X/Y axis inversion for contour.
References flip_axis.
Referenced by RGContourEdit::DrawAssociatedObject(), RGContourEdit::GateFlipHVButton(), and RContour::GetFlipAxis().
|
inlinevirtual |
Test if (x,y) point is in the contour.
x | point X position |
y | point Y position |
Reimplemented in RContourBaseEllipse, RContourBasePolygon, RContourBaseCircle, RContourBase2D, and RContourBase1D.
Referenced by RContour::CheckPoint().
|
pure virtual |
Check whether a point is inside a contour: for 2D contour, a test is performed, for 1D contour result is always false.
p | point to check |
Implemented in RContourBaseEllipse, RContourBasePolygon, RContourBaseCircle, RContourBase2D, and RContourBase1D.
|
pure virtual |
Check whether a value is inside a 1D contour (always false for a 2D contour.
val | value to check |
Implemented in RContourBaseGate, and RContourBase2D.
Referenced by RContourBase1D::CheckPoint(), and RContour::CheckValue().
|
pure virtual |
Return contour dimension.
Implemented in RContourBase2D, and RContourBase1D.
Referenced by RContour::Dimension().
|
pure virtual |
Return contour type identifier.
Implemented in RContourBaseEllipse, RContourBaseGate, RContourBasePolygon, and RContourBaseCircle.
Referenced by RContourBaseCircle::Compare(), RContourBasePolygon::Compare(), RContourBaseGate::Compare(), RContourBaseEllipse::Compare(), RGContourEdit::SetContourPoints(), RContour::Type(), and Write().
|
pure virtual |
Return contour type name.
Implemented in RContourBaseEllipse, RContourBaseGate, RContourBasePolygon, and RContourBaseCircle.
Referenced by RContour::TypeName(), and Write().
|
virtual |
Ecriture du contour dans un flux de sortie.
os | flux de sortie |
References Type(), TypeName(), and WriteData().
Referenced by RContour::Write().
|
virtual |
Ecriture du contour dans un fichier de sortie.
fptr | pointeur de fichier |
References Type(), TypeName(), and WriteData().
|
static |
Fonction d'allocation d'un nouveau contour par lecture dans un flux d'entrée.
is | flux d'entrée |
References RContourBasePolygon::ReadNew(), and RContourBaseGate::ReadNew().
Referenced by RContour::Read().
|
static |
Fonction d'allocation d'un nouveau contour par lecture dans un fichier d'entrée.
fptr | pointeur de fichier |
References RContourBaseCircle::ReadNew(), RContourBasePolygon::ReadNew(), RContourBaseGate::ReadNew(), and RContourBaseEllipse::ReadNew().
|
pure virtual |
Creation of associated ROOT objects list.
Implemented in RContourBaseEllipse, RContourBaseGate, RContourBasePolygon, and RContourBaseCircle.
Referenced by RContour::CreateObjectList().
|
protectedpure virtual |
Write contour data in an output C++ stream.
os | output C++ stream |
Implemented in RContourBaseEllipse, RContourBaseGate, RContourBasePolygon, and RContourBaseCircle.
Referenced by Write().
|
protectedpure virtual |
Write contour data in an output C-style file.
fptr | C-style file pointer |
Implemented in RContourBaseEllipse, RContourBaseGate, RContourBasePolygon, and RContourBaseCircle.
RContourBase::ClassDef | ( | RContourBase | , |
0 | |||
) |
For ROOT dictionary.