VTK  9.3.0
vtkLinearKernel.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
19 #ifndef vtkLinearKernel_h
20 #define vtkLinearKernel_h
21 
22 #include "vtkFiltersPointsModule.h" // For export macro
23 #include "vtkGeneralizedKernel.h"
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkIdList;
27 class vtkDoubleArray;
28 
29 class VTKFILTERSPOINTS_EXPORT vtkLinearKernel : public vtkGeneralizedKernel
30 {
31 public:
33 
36  static vtkLinearKernel* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  // Re-use any superclass signatures that we don't override.
43 
59  double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
60 
61 protected:
63  ~vtkLinearKernel() override;
64 
65 private:
66  vtkLinearKernel(const vtkLinearKernel&) = delete;
67  void operator=(const vtkLinearKernel&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #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:23
a simple class to control print indentation
Definition: vtkIndent.h:29
a linear interpolation kernel
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
~vtkLinearKernel() override
static vtkLinearKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
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,...
int vtkIdType
Definition: vtkType.h:315