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 =========================================================================*/
32 #ifndef vtkVoronoiKernel_h
33 #define vtkVoronoiKernel_h
34 
35 #include "vtkFiltersPointsModule.h" // For export macro
36 #include "vtkInterpolationKernel.h"
37 
38 class vtkIdList;
39 class vtkDoubleArray;
40 
41 
42 class VTKFILTERSPOINTS_EXPORT vtkVoronoiKernel : public vtkInterpolationKernel
43 {
44 public:
46 
49  static vtkVoronoiKernel *New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
61  vtkIdType ComputeBasis(double x[3], vtkIdList *pIds, vtkIdType ptId=0) override;
62 
72  vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
73  vtkDoubleArray *weights) override;
74 
75 protected:
77  ~vtkVoronoiKernel() override;
78 
79 private:
80  vtkVoronoiKernel(const vtkVoronoiKernel&) = delete;
81  void operator=(const vtkVoronoiKernel&) = delete;
82 };
83 
84 #endif
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkInterpolationKernel.h
vtkInterpolationKernel::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInterpolationKernel::ComputeBasis
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...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkVoronoiKernel
a Voronoi interpolation kernel
Definition: vtkVoronoiKernel.h:42
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkInterpolationKernel::ComputeWeights
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...
vtkInterpolationKernel
base class for interpolation kernels
Definition: vtkInterpolationKernel.h:64