VTK  9.1.0
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=========================================================================*/
35#ifndef vtkShepardKernel_h
36#define vtkShepardKernel_h
37
38#include "vtkFiltersPointsModule.h" // For export macro
40
41class vtkIdList;
42class vtkDoubleArray;
43
44class VTKFILTERSPOINTS_EXPORT vtkShepardKernel : public vtkGeneralizedKernel
45{
46public:
48
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
56 // Re-use any superclass signatures that we don't override.
58
74 double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
75
77
81 vtkSetClampMacro(PowerParameter, double, 0.001, 100);
82 vtkGetMacro(PowerParameter, double);
84
85protected:
88
89 // The exponent of the weights, =2 by default (l2 norm)
91
92private:
93 vtkShepardKernel(const vtkShepardKernel&) = delete;
94 void operator=(const vtkShepardKernel&) = delete;
95};
96
97#endif
dynamic, self-adjusting array of double
flexible, general interpolation kernels
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,...
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
a Shepard method interpolation kernel
static vtkShepardKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
~vtkShepardKernel() override
vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *prob, vtkDoubleArray *weights) override
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 instantiation, obtaining type information, and printing.
int vtkIdType
Definition: vtkType.h:332