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
33
34VTK_ABI_NAMESPACE_BEGIN
35class vtkIdList;
36class vtkDoubleArray;
37
38class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
39{
40public:
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
86protected:
89
90 double Sharpness;
91
92 // Internal structure to reduce computation
93 double F2;
94
95private:
96 vtkGaussianKernel(const vtkGaussianKernel&) = delete;
97 void operator=(const vtkGaussianKernel&) = delete;
98};
99
100VTK_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.
static vtkGaussianKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
~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,...
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
int vtkIdType
Definition vtkType.h:315
#define VTK_FLOAT_MAX
Definition vtkType.h:152