VTK  9.2.6
vtkGaussianKernel.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGaussianKernel.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
69 #ifndef vtkGaussianKernel_h
70 #define vtkGaussianKernel_h
71 
72 #include "vtkFiltersPointsModule.h" // For export macro
73 #include "vtkGeneralizedKernel.h"
74 
75 class vtkIdList;
76 class vtkDoubleArray;
77 
78 class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
79 {
80 public:
82 
87  void PrintSelf(ostream& os, vtkIndent indent) override;
89 
95 
96  // Re-use any superclass signatures that we don't override.
98 
114  double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
115 
117 
122  vtkSetClampMacro(Sharpness, double, 1, VTK_FLOAT_MAX);
123  vtkGetMacro(Sharpness, double);
125 
126 protected:
128  ~vtkGaussianKernel() override;
129 
130  double Sharpness;
131 
132  // Internal structure to reduce computation
133  double F2;
134 
135 private:
136  vtkGaussianKernel(const vtkGaussianKernel&) = delete;
137  void operator=(const vtkGaussianKernel&) = delete;
138 };
139 
140 #endif
abstract class to quickly locate points in 3-space
abstract class to specify dataset behavior
Definition: vtkDataSet.h:172
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:143
a simple class to control print indentation
Definition: vtkIndent.h:119
represent and manipulate point attribute data
Definition: vtkPointData.h:151
int vtkIdType
Definition: vtkType.h:332
#define VTK_FLOAT_MAX
Definition: vtkType.h:163