ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TNamed
26 #include "TNamed.h"
27 #endif
28 
29 #ifndef ROOT_Math_Delaunay2D
30 #include "Math/Delaunay2D.h"
31 #endif
32 
33 class TGraph2D;
34 class TView;
35 
36 class TGraphDelaunay2D : public TNamed {
37 
38 public:
39 
40 
41 private:
42  TGraphDelaunay2D(const TGraphDelaunay2D&); // Not implemented
43  TGraphDelaunay2D& operator=(const TGraphDelaunay2D&); // Not implemented
44 
45 protected:
46 
47 
48  TGraph2D *fGraph2D; //!2D graph containing the user data
49 
50  ROOT::Math::Delaunay2D fDelaunay; //! Delaunay interpolator class
51 
52  //Triangles fTriangles; //!Triangles of Triangulation
53 
54 
55 public:
56 
58 
60 
63 
64  TGraph2D *GetGraph2D() const {return fGraph2D;}
66  Int_t GetNdt() const {return fDelaunay.NumberOfTriangles(); }
67  Double_t GetXNmin() const {return fDelaunay.XMin();}
68  Double_t GetXNmax() const {return fDelaunay.XMax();}
69  Double_t GetYNmin() const {return fDelaunay.YMin();}
70  Double_t GetYNmax() const {return fDelaunay.YMax();}
71 
73 
74  Triangles::const_iterator begin() const { return fDelaunay.begin(); }
75  Triangles::const_iterator end() const { return fDelaunay.end(); }
76 
77  ClassDef(TGraphDelaunay2D,1) // Delaunay triangulation
78 
79 private:
80 
81 
82 };
83 
84 #endif
void SetMarginBinsContent(Double_t z=0.)
std::vector< Triangle > Triangles
Definition: Delaunay2D.h:87
See TView3D.
Definition: TView.h:36
ROOT::Math::Delaunay2D fDelaunay
2D graph containing the user data
Double_t GetYNmax() const
int Int_t
Definition: RtypesCore.h:41
double XMax() const
Definition: Delaunay2D.h:107
TGraphDelaunay2D & operator=(const TGraphDelaunay2D &)
void FindAllTriangles()
Find all triangles.
Definition: Delaunay2D.cxx:127
Triangles::const_iterator end() const
Definition: Delaunay2D.h:119
Double_t GetXNmax() const
void SetZOuterValue(double z=0.)
set z value to be returned for points outside the region
Definition: Delaunay2D.h:112
Double_t ComputeZ(Double_t x, Double_t y)
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:254
Int_t GetNdt() const
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
double YMin() const
Definition: Delaunay2D.h:108
Triangles::const_iterator end() const
Triangles::const_iterator begin() const
Float_t z[5]
Definition: Ifit.C:16
Double_t GetMarginBinsContent() const
double Double_t
Definition: RtypesCore.h:55
ROOT::Math::Delaunay2D::Triangles Triangles
Delaunay interpolator class.
Double_t y[n]
Definition: legend1.C:17
TGraphDelaunay2D generates a Delaunay triangulation of a TGraph2D.
Triangles::const_iterator begin() const
Definition: Delaunay2D.h:118
TGraph2D * GetGraph2D() const
Int_t NumberOfTriangles() const
return the number of triangles
Definition: Delaunay2D.h:104
double YMax() const
Definition: Delaunay2D.h:109
Double_t GetYNmin() const
Class to generate a Delaunay triangulation of a 2D set of points.
Definition: Delaunay2D.h:73
Double_t GetXNmin() const
Graphics object made of three arrays X, Y and Z with the same number of points each.
Definition: TGraph2D.h:50
double Interpolate(double x, double y)
Return the Interpolated z value corresponding to the (x,y) point.
Definition: Delaunay2D.cxx:103
double ZOuterValue() const
return the user defined Z-outer value
Definition: Delaunay2D.h:115
double XMin() const
Definition: Delaunay2D.h:106
TGraphDelaunay2D(const TGraphDelaunay2D &)