VTK
vtkShepardKernel.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShepardKernel.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 =========================================================================*/
38 #ifndef vtkShepardKernel_h
39 #define vtkShepardKernel_h
40 
41 #include "vtkFiltersPointsModule.h" // For export macro
42 #include "vtkGeneralizedKernel.h"
43 
44 class vtkIdList;
45 class vtkDoubleArray;
46 
47 
48 class VTKFILTERSPOINTS_EXPORT vtkShepardKernel : public vtkGeneralizedKernel
49 {
50 public:
52 
55  static vtkShepardKernel *New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
60  // Re-use any superclass signatures that we don't override.
62 
77  vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
78  vtkDoubleArray *prob, vtkDoubleArray *weights) override;
79 
81 
85  vtkSetClampMacro(PowerParameter,double,0.001,100);
86  vtkGetMacro(PowerParameter,double);
88 
89 protected:
91  ~vtkShepardKernel() override;
92 
93  // The exponent of the weights, =2 by default (l2 norm)
95 
96 private:
97  vtkShepardKernel(const vtkShepardKernel&) = delete;
98  void operator=(const vtkShepardKernel&) = delete;
99 };
100 
101 #endif
flexible, general interpolation kernels
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
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *prob, vtkDoubleArray *weights)=0
Given a point x, a list of basis points pIds, and a probability weighting function prob...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type and printing.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
a Shepard method interpolation kernel