VTK  9.4.20250209
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
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkIdList;
31class vtkDoubleArray;
32
33class VTKFILTERSPOINTS_EXPORT vtkVoronoiKernel : public vtkInterpolationKernel
34{
35public:
37
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
65protected:
68
69private:
70 vtkVoronoiKernel(const vtkVoronoiKernel&) = delete;
71 void operator=(const vtkVoronoiKernel&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#endif
dynamic, self-adjusting array of double
list of point or cell ids
Definition vtkIdList.h:133
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