VTK: Filters/Points/vtkLinearKernel.h Source File

| VTK 9.3.1

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();
37 vtkTypeMacro(vtkLinearKernel, vtkGeneralizedKernel);
38 void PrintSelf(ostream& os, vtkIndent indent) override;
40
41 // Re-use any superclass signatures that we don't override.
42 using vtkGeneralizedKernel::ComputeWeights;
43
58 vtkIdType ComputeWeights(
59 double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
60
61 protected:
62 vtkLinearKernel();
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
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:40
vtkGeneralizedKernel
flexible, general interpolation kernels
Definition: vtkGeneralizedKernel.h:59
vtkGeneralizedKernel::ComputeWeights
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,...
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkLinearKernel
a linear interpolation kernel
Definition: vtkLinearKernel.h:30
vtkLinearKernel::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
vtkLinearKernel::~vtkLinearKernel
~vtkLinearKernel() override
vtkLinearKernel::New
static vtkLinearKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
vtkLinearKernel::vtkLinearKernel
vtkLinearKernel()
vtkLinearKernel::ComputeWeights
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,...
vtkGeneralizedKernel.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315