VTK  9.3.0
vtkGaussianKernel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
28 #ifndef vtkGaussianKernel_h
29 #define vtkGaussianKernel_h
30 
31 #include "vtkFiltersPointsModule.h" // For export macro
32 #include "vtkGeneralizedKernel.h"
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkIdList;
36 class vtkDoubleArray;
37 
38 class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
39 {
40 public:
42 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
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 
82  vtkSetClampMacro(Sharpness, double, 1, VTK_FLOAT_MAX);
83  vtkGetMacro(Sharpness, double);
85 
86 protected:
88  ~vtkGaussianKernel() override;
89 
90  double Sharpness;
91 
92  // Internal structure to reduce computation
93  double F2;
94 
95 private:
96  vtkGaussianKernel(const vtkGaussianKernel&) = delete;
97  void operator=(const vtkGaussianKernel&) = delete;
98 };
99 
100 VTK_ABI_NAMESPACE_END
101 #endif
abstract class to quickly locate points in 3-space
abstract class to specify dataset behavior
Definition: vtkDataSet.h:53
dynamic, self-adjusting array of double
a spherical Gaussian interpolation kernel
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd) override
Initialize the kernel.
~vtkGaussianKernel() 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,...
static vtkGaussianKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
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:23
a simple class to control print indentation
Definition: vtkIndent.h:29
represent and manipulate point attribute data
Definition: vtkPointData.h:30
int vtkIdType
Definition: vtkType.h:315
#define VTK_FLOAT_MAX
Definition: vtkType.h:152