VTK  9.3.1
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 
45  static vtkGaussianKernel* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
54  void Initialize(vtkAbstractPointLocator* loc, vtkDataSet* ds, vtkPointData* pd) 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 
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
flexible, general interpolation kernels
represent and manipulate point attribute data
Definition: vtkPointData.h:29
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
int vtkIdType
Definition: vtkType.h:315
dynamic, self-adjusting array of double
#define VTK_FLOAT_MAX
Definition: vtkType.h:152
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:22
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.
virtual void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd)
Initialize the kernel.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
a spherical Gaussian interpolation kernel