12 #ifndef ROOT_TGraphDelaunay 13 #define ROOT_TGraphDelaunay Double_t GetMarginBinsContent() const
Double_t * fZ
!Pointer to fGraph2D->fZ
void SetMaxIter(Int_t n=100000)
Defines the number of triangles tested for a Delaunay triangle (number of iterations) before abandoni...
Double_t * fYN
!fGraph2D vectors normalized of size fNpoints
Double_t * fX
!Pointer to fGraph2D->fX
Double_t fYNmin
!Minimum value of fYN
Double_t fZout
!Histogram bin height for points lying outside the convex hull
Int_t * GetNTried() const
Double_t GetXNmin() const
Int_t fNhull
!Number of points in the hull
Double_t fYNmax
!Maximum value of fYN
Int_t fTriedSize
!Real size of the fxTried arrays
Int_t * GetPTried() const
Double_t * fDist
!Array used to order mass points by distance
Double_t * fXN
!fGraph2D vectors normalized of size fNpoints
Double_t fYoffset
!Parameters used to normalize user data
Bool_t InHull(Int_t E, Int_t X) const
Is point e inside the hull defined by all points apart from x ?
void FileIt(Int_t P, Int_t N, Int_t M)
Files the triangle defined by the 3 vertices p, n and m into the fxTried arrays.
#define ClassDef(name, id)
Double_t ComputeZ(Double_t x, Double_t y)
Return the z value corresponding to the (x,y) point in fGraph2D.
TGraph2D * GetGraph2D() const
The TNamed class is the base class for all named ROOT classes.
Double_t fXNmax
!Maximum value of fXN
void SetMarginBinsContent(Double_t z=0.)
Sets the histogram bin height for points lying outside the convex hull ie: the bins in the margin...
TGraphDelaunay()
TGraphDelaunay default constructor.
Int_t * fHullPoints
!Hull points of size fNhull
Int_t * fNTried
!Delaunay triangles storage of size fNdt
Int_t fNpoints
!Number of data points in fGraph2D
Int_t fNdt
!Number of Delaunay triangles found
TGraphDelaunay & operator=(const TGraphDelaunay &)
Int_t * fOrder
!Array used to order mass points by distance
Double_t InterpolateOnPlane(Int_t TI1, Int_t TI2, Int_t TI3, Int_t E) const
Finds the z-value at point e given that it lies on the plane defined by t1,t2,t3. ...
Double_t fXNmin
!Minimum value of fXN
void CreateTrianglesDataStructure()
Function used internally only.
Double_t * fY
!Pointer to fGraph2D->fY
Bool_t fInit
!True if CreateTrianglesDataStructure() and FindHull() have been performed
Bool_t Enclose(Int_t T1, Int_t T2, Int_t T3, Int_t Ex) const
Is point e inside the triangle t1-t2-t3 ?
TGraph2D * fGraph2D
!2D graph containing the user data
Bool_t fAllTri
!True if FindAllTriangles() has been performed on fGraph2D
Int_t * GetMTried() const
you should not use this method at all Int_t Int_t z
void FindAllTriangles()
Attempt to find all the Delaunay triangles of the point set.
Graphics object made of three arrays X, Y and Z with the same number of points each.
virtual ~TGraphDelaunay()
TGraphDelaunay destructor.
Int_t fMaxIter
!Maximum number of iterations to find Delaunay triangles
Double_t GetXNmax() const
TGraphDelaunay generates a Delaunay triangulation of a TGraph2D.
void FindHull()
Finds those points which make up the convex hull of the set.
Double_t Interpolate(Double_t x, Double_t y)
Finds the Delaunay triangle that the point (xi,yi) sits in (if any) and calculate a z-value for it by...
Double_t GetYNmin() const
Double_t GetYNmax() const