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
37 #ifndef vtkGaussianKernel_h
38 #define vtkGaussianKernel_h
39 
40 #include "vtkFiltersPointsModule.h" // For export macro
41 #include "vtkGeneralizedKernel.h"
42 
43 VTK_ABI_NAMESPACE_BEGIN
44 class vtkIdList;
45 class vtkDoubleArray;
46 
47 class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
48 {
49 public:
51 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
64 
65  // Re-use any superclass signatures that we don't override.
67 
83  double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
84 
86 
91  vtkSetClampMacro(Sharpness, double, 1, VTK_FLOAT_MAX);
92  vtkGetMacro(Sharpness, double);
94 
95 protected:
97  ~vtkGaussianKernel() override;
98 
99  double Sharpness;
100 
101  // Internal structure to reduce computation
102  double F2;
103 
104 private:
105  vtkGaussianKernel(const vtkGaussianKernel&) = delete;
106  void operator=(const vtkGaussianKernel&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif
abstract class to quickly locate points in 3-space
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:32
a simple class to control print indentation
Definition: vtkIndent.h:38
represent and manipulate point attribute data
Definition: vtkPointData.h:39
int vtkIdType
Definition: vtkType.h:315
#define VTK_FLOAT_MAX
Definition: vtkType.h:152