Logo ROOT  
Reference Guide
TGraphDelaunay2D.h
Go to the documentation of this file.
1 // @(#)root/hist:$Id: TGraphDelaunay2D.h,v 1.00
2 // Author: Olivier Couet, Luke Jones (Royal Holloway, University of London)
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGraphDelaunay2D
13 #define ROOT_TGraphDelaunay2D
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGraphDelaunay2D //
19 // //
20 // This class uses the Delaunay triangles technique to interpolate and //
21 // render the data set. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TNamed.h"
26 
27 #include "Math/Delaunay2D.h"
28 
29 class TGraph2D;
30 class TView;
31 
32 class TGraphDelaunay2D : public TNamed {
33 
34 public:
35 
36 
37 private:
38  TGraphDelaunay2D(const TGraphDelaunay2D&); // Not implemented
39  TGraphDelaunay2D& operator=(const TGraphDelaunay2D&); // Not implemented
40 
41 protected:
42 
43  TGraph2D *fGraph2D; ///<!2D graph containing the user data
44  ROOT::Math::Delaunay2D fDelaunay; ///<! Delaunay interpolator class
45 
46 public:
47 
49 
51 
54 
55  TGraph2D *GetGraph2D() const {return fGraph2D;}
57  Int_t GetNdt() const {return fDelaunay.NumberOfTriangles(); }
58  Double_t GetXNmin() const {return fDelaunay.XMin();}
59  Double_t GetXNmax() const {return fDelaunay.XMax();}
60  Double_t GetYNmin() const {return fDelaunay.YMin();}
61  Double_t GetYNmax() const {return fDelaunay.YMax();}
62 
64 
65  Triangles::const_iterator begin() const { return fDelaunay.begin(); }
66  Triangles::const_iterator end() const { return fDelaunay.end(); }
67 
68  ClassDef(TGraphDelaunay2D,1) // Delaunay triangulation
69 
70 private:
71 
72 
73 };
74 
75 #endif
TGraphDelaunay2D::GetGraph2D
TGraph2D * GetGraph2D() const
Definition: TGraphDelaunay2D.h:55
TGraphDelaunay2D::fDelaunay
ROOT::Math::Delaunay2D fDelaunay
! Delaunay interpolator class
Definition: TGraphDelaunay2D.h:44
TGraphDelaunay2D::SetMarginBinsContent
void SetMarginBinsContent(Double_t z=0.)
Definition: TGraphDelaunay2D.h:63
ROOT::Math::Delaunay2D::end
Triangles::const_iterator end() const
Definition: Delaunay2D.h:135
ROOT::Math::Delaunay2D::NumberOfTriangles
Int_t NumberOfTriangles() const
return the number of triangles
Definition: Delaunay2D.h:120
TNamed.h
TGraphDelaunay2D::GetNdt
Int_t GetNdt() const
Definition: TGraphDelaunay2D.h:57
TGraphDelaunay2D
Definition: TGraphDelaunay2D.h:32
ROOT::Math::Delaunay2D::FindAllTriangles
void FindAllTriangles()
Find all triangles.
Definition: Delaunay2D.cxx:140
TGraphDelaunay2D::TGraphDelaunay2D
TGraphDelaunay2D(const TGraphDelaunay2D &)
ROOT::Math::Delaunay2D::XMax
double XMax() const
Definition: Delaunay2D.h:123
x
Double_t x[n]
Definition: legend1.C:17
ROOT::Math::Delaunay2D::SetZOuterValue
void SetZOuterValue(double z=0.)
set z value to be returned for points outside the region
Definition: Delaunay2D.h:128
ROOT::Math::Delaunay2D::Interpolate
double Interpolate(double x, double y)
Return the Interpolated z value corresponding to the (x,y) point.
Definition: Delaunay2D.cxx:116
TGraphDelaunay2D::fGraph2D
TGraph2D * fGraph2D
!2D graph containing the user data
Definition: TGraphDelaunay2D.h:43
TGraphDelaunay2D::GetXNmax
Double_t GetXNmax() const
Definition: TGraphDelaunay2D.h:59
TGraphDelaunay2D::GetYNmax
Double_t GetYNmax() const
Definition: TGraphDelaunay2D.h:61
TGraphDelaunay2D::GetXNmin
Double_t GetXNmin() const
Definition: TGraphDelaunay2D.h:58
TGraph2D
Definition: TGraph2D.h:41
TGraphDelaunay2D::ComputeZ
Double_t ComputeZ(Double_t x, Double_t y)
Definition: TGraphDelaunay2D.h:52
TView
Definition: TView.h:25
Delaunay2D.h
TNamed
Definition: TNamed.h:29
TGraphDelaunay2D::end
Triangles::const_iterator end() const
Definition: TGraphDelaunay2D.h:66
ROOT::Math::Delaunay2D::YMax
double YMax() const
Definition: Delaunay2D.h:125
y
Double_t y[n]
Definition: legend1.C:17
TGraphDelaunay2D::Triangles
ROOT::Math::Delaunay2D::Triangles Triangles
Definition: TGraphDelaunay2D.h:48
ROOT::Math::Delaunay2D
Class to generate a Delaunay triangulation of a 2D set of points.
Definition: Delaunay2D.h:83
ROOT::Math::Delaunay2D::XMin
double XMin() const
Definition: Delaunay2D.h:122
TGraphDelaunay2D::begin
Triangles::const_iterator begin() const
Definition: TGraphDelaunay2D.h:65
Double_t
double Double_t
Definition: RtypesCore.h:59
ROOT::Math::Delaunay2D::YMin
double YMin() const
Definition: Delaunay2D.h:124
TGraphDelaunay2D::GetMarginBinsContent
Double_t GetMarginBinsContent() const
Definition: TGraphDelaunay2D.h:56
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
ROOT::Math::Delaunay2D::begin
Triangles::const_iterator begin() const
Definition: Delaunay2D.h:134
TGraphDelaunay2D::FindAllTriangles
void FindAllTriangles()
Definition: TGraphDelaunay2D.h:53
TGraphDelaunay2D::operator=
TGraphDelaunay2D & operator=(const TGraphDelaunay2D &)
TGraphDelaunay2D::GetYNmin
Double_t GetYNmin() const
Definition: TGraphDelaunay2D.h:60
ROOT::Math::Delaunay2D::Triangles
std::vector< Triangle > Triangles
Definition: Delaunay2D.h:103
int
ROOT::Math::Delaunay2D::ZOuterValue
double ZOuterValue() const
return the user defined Z-outer value
Definition: Delaunay2D.h:131
g
#define g(i)
Definition: RSha256.hxx:123