VTK  9.3.20240327
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
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:132
a simple class to control print indentation
Definition: vtkIndent.h:108
base class for interpolation kernels
a Voronoi interpolation kernel
vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *weights) override
Given a point x, and a list of basis points pIds, compute interpolation weights associated with these...
vtkIdType ComputeBasis(double x[3], vtkIdList *pIds, vtkIdType ptId=0) override
Given a point x (and optional associated ptId), determine the points around x which form an interpola...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
~vtkVoronoiKernel() override
static vtkVoronoiKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
int vtkIdType
Definition: vtkType.h:315