Warning, file /include/root/TKDEAdapter.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TTKDEAdapter
0013 #define ROOT_TTKDEAdapter
0014
0015 #include <vector>
0016
0017 #include "TGLIsoMesh.h"
0018 #include "TKDEFGT.h"
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 namespace Rgl {
0035 namespace Fgt {
0036
0037 class TKDEAdapter : protected virtual Mc::TGridGeometry<Float_t> {
0038 protected:
0039 typedef Float_t ElementType_t;
0040
0041 TKDEAdapter();
0042
0043 public:
0044 void SetGeometry(const TGL5DDataSet *dataSet);
0045
0046 void SetE(Double_t e);
0047 Double_t GetE()const;
0048
0049 protected:
0050 UInt_t GetW()const;
0051 UInt_t GetH()const;
0052 UInt_t GetD()const;
0053
0054 void SetDataSource(const TKDEFGT *dataSource);
0055
0056 void FetchDensities()const;
0057
0058 Float_t GetData(UInt_t i, UInt_t j, UInt_t k)const;
0059
0060 void FreeVectors();
0061 private:
0062 typedef std::vector<Double_t> vector_t;
0063
0064 mutable vector_t fGrid;
0065 mutable vector_t fDensities;
0066
0067 UInt_t fW;
0068 UInt_t fH;
0069 UInt_t fD;
0070 UInt_t fSliceSize;
0071
0072
0073 Double_t fXMin, fXStep;
0074 Double_t fYMin, fYStep;
0075 Double_t fZMin, fZStep;
0076
0077 const TKDEFGT *fDE;
0078
0079 Double_t fE;
0080
0081 TKDEAdapter(const TKDEAdapter &rhs);
0082 TKDEAdapter &operator = (const TKDEAdapter &rhs);
0083 };
0084
0085 }
0086 }
0087
0088 #endif