VTK  9.3.20240328
vtkShepardKernel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkShepardKernel_h
27 #define vtkShepardKernel_h
28 
29 #include "vtkFiltersPointsModule.h" // For export macro
30 #include "vtkGeneralizedKernel.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkIdList;
34 class vtkDoubleArray;
35 
36 class VTKFILTERSPOINTS_EXPORT vtkShepardKernel : public vtkGeneralizedKernel
37 {
38 public:
40 
43  static vtkShepardKernel* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
48  // Re-use any superclass signatures that we don't override.
50 
66  double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
67 
69 
73  vtkSetClampMacro(PowerParameter, double, 0.001, 100);
74  vtkGetMacro(PowerParameter, double);
76 
77 protected:
79  ~vtkShepardKernel() override;
80 
81  // The exponent of the weights, =2 by default (l2 norm)
83 
84 private:
85  vtkShepardKernel(const vtkShepardKernel&) = delete;
86  void operator=(const vtkShepardKernel&) = delete;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
dynamic, self-adjusting array of double
flexible, general interpolation kernels
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *prob, vtkDoubleArray *weights)=0
Given a point x, a list of basis points pIds, and a probability weighting function prob,...
list of point or cell ids
Definition: vtkIdList.h:132
a simple class to control print indentation
Definition: vtkIndent.h:108
a Shepard method interpolation kernel
~vtkShepardKernel() override
vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *prob, vtkDoubleArray *weights) override
Given a point x, a list of basis points pIds, and a probability weighting function prob,...
static vtkShepardKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
int vtkIdType
Definition: vtkType.h:315