VTK
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 =========================================================================*/
37 #ifndef vtkGaussianKernel_h
38 #define vtkGaussianKernel_h
39 
40 #include "vtkFiltersPointsModule.h" // For export macro
41 #include "vtkGeneralizedKernel.h"
42 
43 class vtkIdList;
44 class vtkDoubleArray;
45 
46 
47 class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
48 {
49 public:
51 
54  static vtkGaussianKernel *New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
64  vtkPointData *pd) override;
65 
66  // Re-use any superclass signatures that we don't override.
68 
83  vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
84  vtkDoubleArray *prob, vtkDoubleArray *weights) override;
85 
87 
92  vtkSetClampMacro(Sharpness,double,1,VTK_FLOAT_MAX);
93  vtkGetMacro(Sharpness,double);
95 
96 protected:
98  ~vtkGaussianKernel() override;
99 
100  double Sharpness;
101 
102  // Internal structure to reduce computation
103  double F2;
104 
105 private:
106  vtkGaussianKernel(const vtkGaussianKernel&) = delete;
107  void operator=(const vtkGaussianKernel&) = delete;
108 };
109 
110 #endif
flexible, general interpolation kernels
represent and manipulate point attribute data
Definition: vtkPointData.h:31
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
int vtkIdType
Definition: vtkType.h:347
dynamic, self-adjusting array of double
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:30
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