VMTK
Loading...
Searching...
No Matches
vtkvmtkRBFInterpolation.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
33
34#ifndef __vtkvmtkRBFInterpolation_h
35#define __vtkvmtkRBFInterpolation_h
36
37#include "vtkImplicitFunction.h"
38#include "vtkPolyData.h"
39#include "vtkDoubleArray.h"
40#include "vtkvmtkWin32Header.h"
41#include "vtkVersion.h"
42
43class VTK_VMTK_MISC_EXPORT vtkvmtkRBFInterpolation : public vtkImplicitFunction
44{
45 public:
46 vtkTypeMacro(vtkvmtkRBFInterpolation,vtkImplicitFunction);
47 void PrintSelf(std::ostream& os, vtkIndent indent) override;
48
50
52
55 double EvaluateFunction(double x[3]) override;
56 double EvaluateFunction(double x, double y, double z) override
57 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
58
59
63 void EvaluateGradient(double x[3], double n[3]) override;
64
71 void ComputeCoefficients();
72
74
77 vtkSetObjectMacro(Source,vtkPolyData);
78 vtkGetObjectMacro(Source,vtkPolyData);
80
82
87 vtkSetMacro(RBFType,int);
88 vtkGetMacro(RBFType,int);
95
96
97//BTX
98 enum
99 {
103 };
104//ETX
105
106 vtkMTimeType GetMTime() override;
107
108 protected:
111
112 double EvaluateRBF(double c[3], double x[3]);
113
114 vtkPolyData* Source;
116
117 vtkDoubleArray* Coefficients;
119
120 private:
121 vtkvmtkRBFInterpolation(const vtkvmtkRBFInterpolation&); // Not implemented.
122 void operator=(const vtkvmtkRBFInterpolation&); // Not implemented.
123};
124
125#endif
126
127
Implements an implicit function that interpolates a scalar value at a scattered set of points using r...
virtual void SetRBFType(int)
double EvaluateFunction(double x[3]) override
static vtkvmtkRBFInterpolation * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override
double EvaluateFunction(double x, double y, double z) override