VTK  9.3.20240423
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
57#ifndef vtkGaussianKernel_h
58#define vtkGaussianKernel_h
59
60#include "vtkFiltersPointsModule.h" // For export macro
62
63VTK_ABI_NAMESPACE_BEGIN
64class vtkIdList;
65class vtkDoubleArray;
66
67class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
68{
69public:
71
76 void PrintSelf(ostream& os, vtkIndent indent) override;
78
84
85 // Re-use any superclass signatures that we don't override.
87
103 double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
104
106
111 vtkSetClampMacro(Sharpness, double, 1, VTK_FLOAT_MAX);
112 vtkGetMacro(Sharpness, double);
114
115protected:
118
119 double Sharpness;
120
121 // Internal structure to reduce computation
122 double F2;
123
124private:
125 vtkGaussianKernel(const vtkGaussianKernel&) = delete;
126 void operator=(const vtkGaussianKernel&) = delete;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
abstract class to quickly locate points in 3-space
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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:133
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate point attribute data
int vtkIdType
Definition vtkType.h:315
#define VTK_FLOAT_MAX
Definition vtkType.h:152