A++ » MATH » ROOT::Math::Delaunay2D

class ROOT::Math::Delaunay2D

Function Members (Methods)

public:
~Delaunay2D()
vector<ROOT::Math::Delaunay2D::Triangle>::const_iteratorbegin() const
ROOT::Math::Delaunay2DDelaunay2D(int n, const double* x, const double* y, const double* z, double xmin = 0, double xmax = 0, double ymin = 0, double ymax = 0)
vector<ROOT::Math::Delaunay2D::Triangle>::const_iteratorend() const
voidFindAllTriangles()
doubleInterpolate(double x, double y)
Int_tNumberOfTriangles() const
voidSetInputPoints(int n, const double* x, const double* y, const double* z, double xmin = 0, double xmax = 0, double ymin = 0, double ymax = 0)
voidSetZOuterValue(double z = 0.)
doubleXMax() const
doubleXMin() const
doubleYMax() const
doubleYMin() const
doubleZOuterValue() const
protected:
unsigned intCell(UInt_t x, UInt_t y) const
intCellX(double x) const
intCellY(double y) const
private:
ROOT::Math::Delaunay2DDelaunay2D(const ROOT::Math::Delaunay2D&)
voidDoFindTriangles()
doubleDoInterpolateNormalized(double x, double y)
voidDoNormalizePoints()
doubleLinear_transform(double x, double offset, double factor)
ROOT::Math::Delaunay2D&operator=(const ROOT::Math::Delaunay2D&)

Data Members

protected:
set<UInt_t>fCells[676]! grid cells with containing triangles
Bool_tfInit!True if FindAllTriangels() has been performed
static const intfNCells! number of cells to divide the normalized space
Int_tfNdt!Number of Delaunay triangles found
Int_tfNpoints!Number of data points
doublefOffsetX!Normalization offset X
doublefOffsetY!Normalization offset Y
doublefScaleFactorX!Normalization factor X
doublefScaleFactorY!Normalization factor Y
ROOT::Math::Delaunay2D::TrianglesfTriangles!Triangles of Triangulation
const double*fX!Pointer to X array (managed externally)
doublefXCellStep! inverse denominator to calculate X cell = fNCells / (fXNmax - fXNmin)
vector<double>fXN! normalized X
doublefXNmax!Maximum value of fXN
doublefXNmin!Minimum value of fXN
const double*fY!Pointer to Y array
doublefYCellStep! inverse denominator to calculate X cell = fNCells / (fYNmax - fYNmin)
vector<double>fYN! normalized Y
doublefYNmax!Maximum value of fYN
doublefYNmin!Minimum value of fYN
const double*fZ!Pointer to Z array
doublefZout!Height for points lying outside the convex hull

Class Charts

Inheritance Chart:
ROOT::Math::Delaunay2D

Function documentation

Delaunay2D(int n, const double* x, const double* y, const double* z, double xmin = 0, double xmax = 0, double ymin = 0, double ymax = 0)
void SetInputPoints(int n, const double* x, const double* y, const double* z, double xmin = 0, double xmax = 0, double ymin = 0, double ymax = 0)
 set the input points for building the graph
double Interpolate(double x, double y)
 Return the Interpolated z value corresponding to the (x,y) point
void FindAllTriangles()
 Find all triangles
Int_t NumberOfTriangles() const
 return the number of triangles
{return fNdt;}
double XMin() const
{return fXNmin;}
double XMax() const
{return fXNmax;}
double YMin() const
{return fYNmin;}
double YMax() const
{return fYNmax;}
void SetZOuterValue(double z = 0.)
 set z value to be returned for points  outside the region
{ fZout = z; }
double ZOuterValue() const
 return the user defined Z-outer value
{ return fZout; }
Triangles::const_iterator begin() const
 iterators on the found triangles
{ return fTriangles.begin(); }
Triangles::const_iterator end() const
{ return fTriangles.end(); }
double Linear_transform(double x, double offset, double factor)
 internal methods
void DoNormalizePoints()
 internal function to normalize the points
void DoFindTriangles()
 internal function to find the triangle
 use Triangle or CGAL if flag is set
double DoInterpolateNormalized(double x, double y)
 internal method to compute the interpolation
Delaunay2D(const ROOT::Math::Delaunay2D& )
 class is not copyable
Delaunay2D& operator=(const ROOT::Math::Delaunay2D& )
unsigned int Cell(UInt_t x, UInt_t y) const
int CellX(double x) const
int CellY(double y) const