VTK
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 =========================================================================*/
35 #ifndef vtkVoronoiKernel_h
36 #define vtkVoronoiKernel_h
37 
38 #include "vtkFiltersPointsModule.h" // For export macro
39 #include "vtkInterpolationKernel.h"
40 
41 class vtkIdList;
42 class vtkDoubleArray;
43 
44 
45 class VTKFILTERSPOINTS_EXPORT vtkVoronoiKernel : public vtkInterpolationKernel
46 {
47 public:
49 
52  static vtkVoronoiKernel *New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
64  vtkIdType ComputeBasis(double x[3], vtkIdList *pIds, vtkIdType ptId=0) override;
65 
75  vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
76  vtkDoubleArray *weights) override;
77 
78 protected:
80  ~vtkVoronoiKernel() override;
81 
82 private:
83  vtkVoronoiKernel(const vtkVoronoiKernel&) = delete;
84  void operator=(const vtkVoronoiKernel&) = delete;
85 };
86 
87 #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:347
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:36
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...