Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250409
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
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkIdList;
34class vtkDoubleArray;
35
36class VTKFILTERSPOINTS_EXPORT vtkShepardKernel : public vtkGeneralizedKernel
37{
38public:
40
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
48 // Reuse 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
77protected:
80
81 // The exponent of the weights, =2 by default (l2 norm)
83
84private:
85 vtkShepardKernel(const vtkShepardKernel&) = delete;
86 void operator=(const vtkShepardKernel&) = delete;
87};
88
89VTK_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:133
a simple class to control print indentation
Definition vtkIndent.h:108
a Shepard method interpolation kernel
static vtkShepardKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
~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,...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
int vtkIdType
Definition vtkType.h:332