#include <TGraphDelaunay.h>
Inheritance diagram for TGraphDelaunay:
Public Member Functions | |
TGraphDelaunay () | |
TGraphDelaunay (TGraph2D *g) | |
virtual | ~TGraphDelaunay () |
Double_t | ComputeZ (Double_t x, Double_t y) |
void | FindAllTriangles () |
TGraph2D * | GetGraph2D () const |
Double_t | GetMarginBinsContent () const |
Int_t | GetNdt () const |
Int_t * | GetPTried () const |
Int_t * | GetNTried () const |
Int_t * | GetMTried () const |
Double_t * | GetXN () const |
Double_t * | GetYN () const |
Double_t | GetXNmin () const |
Double_t | GetXNmax () const |
Double_t | GetYNmin () const |
Double_t | GetYNmax () const |
Double_t | Interpolate (Double_t x, Double_t y) |
void | SetMaxIter (Int_t n=100000) |
void | SetMarginBinsContent (Double_t z=0.) |
TGraphDelaunay () | |
TGraphDelaunay (TGraph2D *g) | |
virtual | ~TGraphDelaunay () |
Double_t | ComputeZ (Double_t x, Double_t y) |
void | FindAllTriangles () |
TGraph2D * | GetGraph2D () const |
Double_t | GetMarginBinsContent () const |
Int_t | GetNdt () const |
Int_t * | GetPTried () const |
Int_t * | GetNTried () const |
Int_t * | GetMTried () const |
Double_t * | GetXN () const |
Double_t * | GetYN () const |
Double_t | GetXNmin () const |
Double_t | GetXNmax () const |
Double_t | GetYNmin () const |
Double_t | GetYNmax () const |
Double_t | Interpolate (Double_t x, Double_t y) |
void | SetMaxIter (Int_t n=100000) |
void | SetMarginBinsContent (Double_t z=0.) |
Protected Member Functions | |
void | CreateTrianglesDataStructure () |
2D graph containing the user data | |
Bool_t | Enclose (Int_t T1, Int_t T2, Int_t T3, Int_t Ex) const |
void | FileIt (Int_t P, Int_t N, Int_t M) |
void | FindHull () |
Bool_t | InHull (Int_t E, Int_t X) const |
Double_t | InterpolateOnPlane (Int_t TI1, Int_t TI2, Int_t TI3, Int_t E) const |
void | CreateTrianglesDataStructure () |
2D graph containing the user data | |
Bool_t | Enclose (Int_t T1, Int_t T2, Int_t T3, Int_t Ex) const |
void | FileIt (Int_t P, Int_t N, Int_t M) |
void | FindHull () |
Bool_t | InHull (Int_t E, Int_t X) const |
Double_t | InterpolateOnPlane (Int_t TI1, Int_t TI2, Int_t TI3, Int_t E) const |
Protected Attributes | |
Int_t | fNdt |
Int_t | fNpoints |
Number of Delaunay triangles found. | |
Int_t | fNhull |
Number of data points in fGraph2D. | |
Double_t * | fX |
Number of points in the hull. | |
Double_t * | fY |
Pointer to fGraph2D->fX. | |
Double_t * | fZ |
Pointer to fGraph2D->fY. | |
Double_t * | fXN |
Pointer to fGraph2D->fZ. | |
Double_t * | fYN |
fGraph2D vectors normalized of size fNpoints | |
Double_t | fXNmin |
fGraph2D vectors normalized of size fNpoints | |
Double_t | fXNmax |
Minimum value of fXN. | |
Double_t | fYNmin |
Maximum value of fXN. | |
Double_t | fYNmax |
Minimum value of fYN. | |
Double_t | fXoffset |
Maximum value of fYN. | |
Double_t | fYoffset |
Double_t | fXScaleFactor |
Parameters used to normalize user data. | |
Double_t | fYScaleFactor |
Double_t | fZout |
Double_t * | fDist |
Histogram bin height for points lying outside the convex hull. | |
Int_t | fMaxIter |
Array used to order mass points by distance. | |
Int_t | fTriedSize |
Maximum number of iterations to find Delaunay triangles. | |
Int_t * | fPTried |
Real size of the fxTried arrays. | |
Int_t * | fNTried |
Int_t * | fMTried |
Delaunay triangles storage of size fNdt. | |
Int_t * | fHullPoints |
Int_t * | fOrder |
Hull points of size fNhull. | |
Bool_t | fAllTri |
Array used to order mass points by distance. | |
Bool_t | fInit |
True if FindAllTriangles() has been performed on fGraph2D. | |
TGraph2D * | fGraph2D |
True if CreateTrianglesDataStructure() and FindHull() have been performed. | |
Double_t * | fX |
Number of points in the hull. | |
Double_t * | fY |
Pointer to fGraph2D->fX. | |
Double_t * | fZ |
Pointer to fGraph2D->fY. | |
Double_t * | fXN |
Pointer to fGraph2D->fZ. | |
Double_t * | fYN |
fGraph2D vectors normalized of size fNpoints | |
Double_t * | fDist |
Histogram bin height for points lying outside the convex hull. | |
Int_t * | fPTried |
Real size of the fxTried arrays. | |
Int_t * | fNTried |
Int_t * | fMTried |
Delaunay triangles storage of size fNdt. | |
Int_t * | fHullPoints |
Int_t * | fOrder |
Hull points of size fNhull. | |
TGraph2D * | fGraph2D |
True if CreateTrianglesDataStructure() and FindHull() have been performed. | |
Private Member Functions | |
TGraphDelaunay (const TGraphDelaunay &) | |
TGraphDelaunay & | operator= (const TGraphDelaunay &) |
TGraphDelaunay (const TGraphDelaunay &) | |
TGraphDelaunay & | operator= (const TGraphDelaunay &) |
Definition at line 32 of file TGraphDelaunay.h.
TGraphDelaunay::TGraphDelaunay | ( | const TGraphDelaunay & | ) | [private] |
TGraphDelaunay::TGraphDelaunay | ( | ) |
TGraphDelaunay::TGraphDelaunay | ( | TGraph2D * | g | ) |
Definition at line 86 of file TGraphDelaunay.cxx.
References fDist, fGraph2D, fHullPoints, fInit, fMTried, fNdt, fNhull, fNpoints, fNTried, fOrder, fPTried, fTriedSize, fX, fXN, fXNmax, fXNmin, fXoffset, fXScaleFactor, fY, fYN, fYNmax, fYNmin, fYoffset, fYScaleFactor, fZ, fZout, g, TGraph2D::GetN(), TGraph2D::GetX(), TGraph2D::GetY(), TGraph2D::GetZ(), kFALSE, and SetMaxIter().
TGraphDelaunay::~TGraphDelaunay | ( | ) | [virtual] |
Definition at line 123 of file TGraphDelaunay.cxx.
References fDist, fHullPoints, fMTried, fNTried, fOrder, fPTried, fXN, and fYN.
TGraphDelaunay::TGraphDelaunay | ( | const TGraphDelaunay & | ) | [private] |
TGraphDelaunay::TGraphDelaunay | ( | ) |
TGraphDelaunay::TGraphDelaunay | ( | TGraph2D * | g | ) |
virtual TGraphDelaunay::~TGraphDelaunay | ( | ) | [virtual] |
TGraphDelaunay& TGraphDelaunay::operator= | ( | const TGraphDelaunay & | ) | [private] |
void TGraphDelaunay::CreateTrianglesDataStructure | ( | ) | [protected] |
2D graph containing the user data
Definition at line 180 of file TGraphDelaunay.cxx.
References fGraph2D, fMTried, fNpoints, fNTried, fPTried, fTriedSize, fX, fXN, fXNmax, fXNmin, fXoffset, fXScaleFactor, fY, fYN, fYNmax, fYNmin, fYoffset, fYScaleFactor, TGraph2D::GetXmax(), TGraph2D::GetXmin(), TGraph2D::GetYmax(), TGraph2D::GetYmin(), n, xmax, xmin, ymax, and ymin.
Referenced by ComputeZ(), and Interpolate().
Definition at line 218 of file TGraphDelaunay.cxx.
References fXN, fYN, TMath::IsInside(), x, and y.
Referenced by Interpolate().
Definition at line 238 of file TGraphDelaunay.cxx.
References fMTried, fNdt, fNTried, fPTried, fTriedSize, kFALSE, kTRUE, and ROOT::Math::swap().
Referenced by Interpolate().
void TGraphDelaunay::FindHull | ( | ) | [protected] |
Definition at line 420 of file TGraphDelaunay.cxx.
References fHullPoints, fNhull, fNpoints, InHull(), and n.
Referenced by ComputeZ(), and Interpolate().
Definition at line 451 of file TGraphDelaunay.cxx.
References TMath::ATan2(), fHullPoints, fNhull, fNpoints, fXN, fYN, kFALSE, kTRUE, m, n, TMath::Pi(), TMath::Sqrt(), TMath::TwoPi(), and u.
Referenced by FindHull(), and Interpolate().
Double_t TGraphDelaunay::InterpolateOnPlane | ( | Int_t | TI1, | |
Int_t | TI2, | |||
Int_t | TI3, | |||
Int_t | E | |||
) | const [protected] |
Definition at line 558 of file TGraphDelaunay.cxx.
References f2, fXN, fYN, fZ, kFALSE, kTRUE, ROOT::Math::swap(), u, w, x1, x2, and x3.
Referenced by Interpolate().
Definition at line 148 of file TGraphDelaunay.cxx.
References CreateTrianglesDataStructure(), FindHull(), fInit, fXoffset, fXScaleFactor, fYoffset, fYScaleFactor, Interpolate(), and kTRUE.
Referenced by TGraph2D::GetHistogram(), and TGraph2D::Interpolate().
void TGraphDelaunay::FindAllTriangles | ( | ) |
Definition at line 284 of file TGraphDelaunay.cxx.
References a, TMath::Abs(), fAllTri, fHullPoints, fMTried, fNdt, fNhull, fNTried, fPTried, fXN, fYN, Interpolate(), kFALSE, kTRUE, m, TMath::Max(), n, p1(), p2(), p3(), s, TMath::Sqrt(), and sx.
Referenced by TGraph2DPainter::FindTriangles().
TGraph2D* TGraphDelaunay::GetGraph2D | ( | ) | const [inline] |
Definition at line 86 of file TGraphDelaunay.h.
References fGraph2D.
Referenced by TGraph2DPainter::TGraph2DPainter().
Double_t TGraphDelaunay::GetMarginBinsContent | ( | ) | const [inline] |
Int_t TGraphDelaunay::GetNdt | ( | ) | const [inline] |
Definition at line 88 of file TGraphDelaunay.h.
References fNdt.
Referenced by TGraph2DPainter::FindTriangles().
Int_t* TGraphDelaunay::GetPTried | ( | ) | const [inline] |
Definition at line 89 of file TGraphDelaunay.h.
References fPTried.
Referenced by TGraph2DPainter::FindTriangles().
Int_t* TGraphDelaunay::GetNTried | ( | ) | const [inline] |
Definition at line 90 of file TGraphDelaunay.h.
References fNTried.
Referenced by TGraph2DPainter::FindTriangles().
Int_t* TGraphDelaunay::GetMTried | ( | ) | const [inline] |
Definition at line 91 of file TGraphDelaunay.h.
References fMTried.
Referenced by TGraph2DPainter::FindTriangles().
Double_t* TGraphDelaunay::GetXN | ( | ) | const [inline] |
Definition at line 92 of file TGraphDelaunay.h.
References fXN.
Referenced by TGraph2DPainter::FindTriangles().
Double_t* TGraphDelaunay::GetYN | ( | ) | const [inline] |
Definition at line 93 of file TGraphDelaunay.h.
References fYN.
Referenced by TGraph2DPainter::FindTriangles().
Double_t TGraphDelaunay::GetXNmin | ( | ) | const [inline] |
Definition at line 94 of file TGraphDelaunay.h.
References fXNmin.
Referenced by TGraph2DPainter::FindTriangles().
Double_t TGraphDelaunay::GetXNmax | ( | ) | const [inline] |
Definition at line 95 of file TGraphDelaunay.h.
References fXNmax.
Referenced by TGraph2DPainter::FindTriangles().
Double_t TGraphDelaunay::GetYNmin | ( | ) | const [inline] |
Definition at line 96 of file TGraphDelaunay.h.
References fYNmin.
Referenced by TGraph2DPainter::FindTriangles().
Double_t TGraphDelaunay::GetYNmax | ( | ) | const [inline] |
Definition at line 97 of file TGraphDelaunay.h.
References fYNmax.
Referenced by TGraph2DPainter::FindTriangles().
Definition at line 596 of file TGraphDelaunay.cxx.
References a, TMath::Abs(), b, c1, CreateTrianglesDataStructure(), d, E, Enclose(), TObject::Error(), fDist, FileIt(), FindHull(), fInit, fMaxIter, fMTried, fNdt, fNpoints, fNTried, fOrder, fPTried, fXN, fXNmax, fXNmin, fYN, fYNmax, fYNmin, fZ, fZout, i, InHull(), InterpolateOnPlane(), j, k, kFALSE, kTRUE, l, m, n, p, TMath::Sort(), TMath::Sqrt(), u, and TObject::Warning().
Referenced by ComputeZ(), and FindAllTriangles().
void TGraphDelaunay::SetMaxIter | ( | Int_t | n = 100000 |
) |
Definition at line 930 of file TGraphDelaunay.cxx.
References fAllTri, fMaxIter, and kFALSE.
Referenced by TGraph2D::GetHistogram(), and TGraphDelaunay().
void TGraphDelaunay::SetMarginBinsContent | ( | Double_t | z = 0. |
) |
Definition at line 941 of file TGraphDelaunay.cxx.
References fZout.
Referenced by TGraph2D::GetHistogram().
TGraphDelaunay& TGraphDelaunay::operator= | ( | const TGraphDelaunay & | ) | [private] |
void TGraphDelaunay::CreateTrianglesDataStructure | ( | ) | [protected] |
2D graph containing the user data
void TGraphDelaunay::FindHull | ( | ) | [protected] |
Double_t TGraphDelaunay::InterpolateOnPlane | ( | Int_t | TI1, | |
Int_t | TI2, | |||
Int_t | TI3, | |||
Int_t | E | |||
) | const [protected] |
void TGraphDelaunay::FindAllTriangles | ( | ) |
TGraph2D* TGraphDelaunay::GetGraph2D | ( | ) | const [inline] |
Double_t TGraphDelaunay::GetMarginBinsContent | ( | ) | const [inline] |
Int_t TGraphDelaunay::GetNdt | ( | ) | const [inline] |
Int_t* TGraphDelaunay::GetPTried | ( | ) | const [inline] |
Int_t* TGraphDelaunay::GetNTried | ( | ) | const [inline] |
Int_t* TGraphDelaunay::GetMTried | ( | ) | const [inline] |
Double_t* TGraphDelaunay::GetXN | ( | ) | const [inline] |
Double_t* TGraphDelaunay::GetYN | ( | ) | const [inline] |
Double_t TGraphDelaunay::GetXNmin | ( | ) | const [inline] |
Double_t TGraphDelaunay::GetXNmax | ( | ) | const [inline] |
Double_t TGraphDelaunay::GetYNmin | ( | ) | const [inline] |
Double_t TGraphDelaunay::GetYNmax | ( | ) | const [inline] |
void TGraphDelaunay::SetMaxIter | ( | Int_t | n = 100000 |
) |
void TGraphDelaunay::SetMarginBinsContent | ( | Double_t | z = 0. |
) |
Int_t TGraphDelaunay::fNdt [protected] |
Definition at line 41 of file TGraphDelaunay.h.
Referenced by FileIt(), FindAllTriangles(), GetNdt(), Interpolate(), and TGraphDelaunay().
Int_t TGraphDelaunay::fNpoints [protected] |
Number of Delaunay triangles found.
Definition at line 42 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), FindHull(), InHull(), Interpolate(), and TGraphDelaunay().
Int_t TGraphDelaunay::fNhull [protected] |
Number of data points in fGraph2D.
Definition at line 43 of file TGraphDelaunay.h.
Referenced by FindAllTriangles(), FindHull(), InHull(), and TGraphDelaunay().
Double_t* TGraphDelaunay::fX [protected] |
Number of points in the hull.
Definition at line 44 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), and TGraphDelaunay().
Double_t* TGraphDelaunay::fY [protected] |
Pointer to fGraph2D->fX.
Definition at line 45 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), and TGraphDelaunay().
Double_t* TGraphDelaunay::fZ [protected] |
Pointer to fGraph2D->fY.
Definition at line 46 of file TGraphDelaunay.h.
Referenced by Interpolate(), InterpolateOnPlane(), and TGraphDelaunay().
Double_t* TGraphDelaunay::fXN [protected] |
Pointer to fGraph2D->fZ.
Definition at line 47 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), Enclose(), FindAllTriangles(), GetXN(), InHull(), Interpolate(), InterpolateOnPlane(), TGraphDelaunay(), and ~TGraphDelaunay().
Double_t* TGraphDelaunay::fYN [protected] |
fGraph2D vectors normalized of size fNpoints
Definition at line 48 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), Enclose(), FindAllTriangles(), GetYN(), InHull(), Interpolate(), InterpolateOnPlane(), TGraphDelaunay(), and ~TGraphDelaunay().
Double_t TGraphDelaunay::fXNmin [protected] |
fGraph2D vectors normalized of size fNpoints
Definition at line 49 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), GetXNmin(), Interpolate(), and TGraphDelaunay().
Double_t TGraphDelaunay::fXNmax [protected] |
Minimum value of fXN.
Definition at line 50 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), GetXNmax(), Interpolate(), and TGraphDelaunay().
Double_t TGraphDelaunay::fYNmin [protected] |
Maximum value of fXN.
Definition at line 51 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), GetYNmin(), Interpolate(), and TGraphDelaunay().
Double_t TGraphDelaunay::fYNmax [protected] |
Minimum value of fYN.
Definition at line 52 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), GetYNmax(), Interpolate(), and TGraphDelaunay().
Double_t TGraphDelaunay::fXoffset [protected] |
Maximum value of fYN.
Definition at line 53 of file TGraphDelaunay.h.
Referenced by ComputeZ(), CreateTrianglesDataStructure(), and TGraphDelaunay().
Double_t TGraphDelaunay::fYoffset [protected] |
Definition at line 54 of file TGraphDelaunay.h.
Referenced by ComputeZ(), CreateTrianglesDataStructure(), and TGraphDelaunay().
Double_t TGraphDelaunay::fXScaleFactor [protected] |
Parameters used to normalize user data.
Definition at line 55 of file TGraphDelaunay.h.
Referenced by ComputeZ(), CreateTrianglesDataStructure(), and TGraphDelaunay().
Double_t TGraphDelaunay::fYScaleFactor [protected] |
Definition at line 56 of file TGraphDelaunay.h.
Referenced by ComputeZ(), CreateTrianglesDataStructure(), and TGraphDelaunay().
Double_t TGraphDelaunay::fZout [protected] |
Definition at line 57 of file TGraphDelaunay.h.
Referenced by GetMarginBinsContent(), Interpolate(), SetMarginBinsContent(), and TGraphDelaunay().
Double_t* TGraphDelaunay::fDist [protected] |
Histogram bin height for points lying outside the convex hull.
Definition at line 58 of file TGraphDelaunay.h.
Referenced by Interpolate(), TGraphDelaunay(), and ~TGraphDelaunay().
Int_t TGraphDelaunay::fMaxIter [protected] |
Array used to order mass points by distance.
Definition at line 59 of file TGraphDelaunay.h.
Referenced by Interpolate(), and SetMaxIter().
Int_t TGraphDelaunay::fTriedSize [protected] |
Maximum number of iterations to find Delaunay triangles.
Definition at line 60 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), FileIt(), and TGraphDelaunay().
Int_t* TGraphDelaunay::fPTried [protected] |
Real size of the fxTried arrays.
Definition at line 61 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), FileIt(), FindAllTriangles(), GetPTried(), Interpolate(), TGraphDelaunay(), and ~TGraphDelaunay().
Int_t* TGraphDelaunay::fNTried [protected] |
Definition at line 62 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), FileIt(), FindAllTriangles(), GetNTried(), Interpolate(), TGraphDelaunay(), and ~TGraphDelaunay().
Int_t* TGraphDelaunay::fMTried [protected] |
Delaunay triangles storage of size fNdt.
Definition at line 63 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), FileIt(), FindAllTriangles(), GetMTried(), Interpolate(), TGraphDelaunay(), and ~TGraphDelaunay().
Int_t* TGraphDelaunay::fHullPoints [protected] |
Definition at line 64 of file TGraphDelaunay.h.
Referenced by FindAllTriangles(), FindHull(), InHull(), TGraphDelaunay(), and ~TGraphDelaunay().
Int_t* TGraphDelaunay::fOrder [protected] |
Hull points of size fNhull.
Definition at line 65 of file TGraphDelaunay.h.
Referenced by Interpolate(), TGraphDelaunay(), and ~TGraphDelaunay().
Bool_t TGraphDelaunay::fAllTri [protected] |
Array used to order mass points by distance.
Definition at line 66 of file TGraphDelaunay.h.
Referenced by FindAllTriangles(), and SetMaxIter().
Bool_t TGraphDelaunay::fInit [protected] |
True if FindAllTriangles() has been performed on fGraph2D.
Definition at line 67 of file TGraphDelaunay.h.
Referenced by ComputeZ(), Interpolate(), and TGraphDelaunay().
TGraph2D* TGraphDelaunay::fGraph2D [protected] |
True if CreateTrianglesDataStructure() and FindHull() have been performed.
Definition at line 68 of file TGraphDelaunay.h.
Referenced by CreateTrianglesDataStructure(), GetGraph2D(), and TGraphDelaunay().
Double_t* TGraphDelaunay::fX [protected] |
Double_t* TGraphDelaunay::fY [protected] |
Double_t* TGraphDelaunay::fZ [protected] |
Double_t* TGraphDelaunay::fXN [protected] |
Double_t* TGraphDelaunay::fYN [protected] |
Double_t* TGraphDelaunay::fDist [protected] |
Histogram bin height for points lying outside the convex hull.
Definition at line 58 of file TGraphDelaunay.h.
Int_t* TGraphDelaunay::fPTried [protected] |
Int_t* TGraphDelaunay::fNTried [protected] |
Definition at line 62 of file TGraphDelaunay.h.
Int_t* TGraphDelaunay::fMTried [protected] |
Int_t* TGraphDelaunay::fHullPoints [protected] |
Definition at line 64 of file TGraphDelaunay.h.
Int_t* TGraphDelaunay::fOrder [protected] |
TGraph2D* TGraphDelaunay::fGraph2D [protected] |
True if CreateTrianglesDataStructure() and FindHull() have been performed.
Definition at line 68 of file TGraphDelaunay.h.