VTK  9.3.1
vtkVoronoiKernel.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
23 #ifndef vtkVoronoiKernel_h
24 #define vtkVoronoiKernel_h
25 
26 #include "vtkFiltersPointsModule.h" // For export macro
27 #include "vtkInterpolationKernel.h"
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkIdList;
31 class vtkDoubleArray;
32 
33 class VTKFILTERSPOINTS_EXPORT vtkVoronoiKernel : public vtkInterpolationKernel
34 {
35 public:
37 
40  static vtkVoronoiKernel* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
52  vtkIdType ComputeBasis(double x[3], vtkIdList* pIds, vtkIdType ptId = 0) override;
53 
63  vtkIdType ComputeWeights(double x[3], vtkIdList* pIds, vtkDoubleArray* weights) override;
64 
65 protected:
67  ~vtkVoronoiKernel() override;
68 
69 private:
70  vtkVoronoiKernel(const vtkVoronoiKernel&) = delete;
71  void operator=(const vtkVoronoiKernel&) = delete;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #endif
virtual vtkIdType ComputeBasis(double x[3], vtkIdList *pIds, vtkIdType ptId=0)=0
Given a point x (and optional associated point id), determine the points around x which form an inter...
base class for interpolation kernels
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *weights)=0
Given a point x, and a list of basis points pIds, compute interpolation weights associated with these...
int vtkIdType
Definition: vtkType.h:315
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
void PrintSelf(ostream &os, vtkIndent indent) override
Standard method for type and printing.
a Voronoi interpolation kernel
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...