VMTK
Loading...
Searching...
No Matches
vtkvmtkRBFInterpolation2.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 Note: this class was contributed by
17 Tangui Morvan
18 Kalkulo AS
19 Simula Research Laboratory
20=========================================================================*/
38
39#ifndef __vtkvmtkRBFInterpolation2_h
40#define __vtkvmtkRBFInterpolation2_h
41
42#include "vtkImplicitFunction.h"
43#include "vtkPolyData.h"
44#include "vtkDoubleArray.h"
45#include "vtkvmtkWin32Header.h"
46
47class VTK_VMTK_CONTRIB_EXPORT vtkvmtkRBFInterpolation2 : public vtkImplicitFunction
48{
49 public:
50 vtkTypeMacro(vtkvmtkRBFInterpolation2,vtkImplicitFunction);
51 void PrintSelf(std::ostream& os, vtkIndent indent) override;
52
54
56
59 double EvaluateFunction(double x[3]) override;
60 double EvaluateFunction(double x, double y, double z) override
61 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
62
63
68 void EvaluateGradient(double x[3], double n[3]) override;
69
77 void ComputeCoefficients();
78
80
86 vtkSetObjectMacro(Source,vtkPolyData);
87 vtkGetObjectMacro(Source,vtkPolyData);
89
91
96 vtkSetMacro(RBFType,int);
97 vtkGetMacro(RBFType,int);
104
105
106//BTX
107 enum
108 {
112 };
113//ETX
114
118 vtkMTimeType GetMTime() override;
119
120 protected:
123
124 double EvaluateRBF(double c[3], double x[3]);
125
126 vtkPolyData* Source;
128
129 vtkDoubleArray* Coefficients;
130
131 private:
132 vtkvmtkRBFInterpolation2(const vtkvmtkRBFInterpolation2&); // Not implemented.
133 void operator=(const vtkvmtkRBFInterpolation2&); // Not implemented.
134};
135
136#endif
137
138
Implicit function that interpolates scalar point data with a radial basis function.
virtual void SetRBFType(int)
double EvaluateFunction(double x[3]) override
double EvaluateFunction(double x, double y, double z) override
static vtkvmtkRBFInterpolation2 * New()
void PrintSelf(std::ostream &os, vtkIndent indent) override