VTK  9.1.0
vtkVoronoiKernel.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkVoronoiKernel.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
32#ifndef vtkVoronoiKernel_h
33#define vtkVoronoiKernel_h
34
35#include "vtkFiltersPointsModule.h" // For export macro
37
38class vtkIdList;
39class vtkDoubleArray;
40
41class VTKFILTERSPOINTS_EXPORT vtkVoronoiKernel : public vtkInterpolationKernel
42{
43public:
45
50 void PrintSelf(ostream& os, vtkIndent indent) override;
52
60 vtkIdType ComputeBasis(double x[3], vtkIdList* pIds, vtkIdType ptId = 0) override;
61
71 vtkIdType ComputeWeights(double x[3], vtkIdList* pIds, vtkDoubleArray* weights) override;
72
73protected:
76
77private:
78 vtkVoronoiKernel(const vtkVoronoiKernel&) = delete;
79 void operator=(const vtkVoronoiKernel&) = delete;
80};
81
82#endif
dynamic, self-adjusting array of double
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
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:332