VTK  9.0.20201202
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 class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
47 {
48 public:
50 
53  static vtkGaussianKernel* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
62  void Initialize(vtkAbstractPointLocator* loc, vtkDataSet* ds, vtkPointData* pd) override;
63 
64  // Re-use any superclass signatures that we don't override.
66 
82  double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
83 
85 
90  vtkSetClampMacro(Sharpness, double, 1, VTK_FLOAT_MAX);
91  vtkGetMacro(Sharpness, double);
93 
94 protected:
96  ~vtkGaussianKernel() override;
97 
98  double Sharpness;
99 
100  // Internal structure to reduce computation
101  double F2;
102 
103 private:
104  vtkGaussianKernel(const vtkGaussianKernel&) = delete;
105  void operator=(const vtkGaussianKernel&) = delete;
106 };
107 
108 #endif
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:32
vtkIdType
int vtkIdType
Definition: vtkType.h:330
vtkGaussianKernel::Sharpness
double Sharpness
Definition: vtkGaussianKernel.h:98
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkInterpolationKernel::Initialize
virtual void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd)
Initialize the kernel.
vtkGeneralizedKernel.h
vtkGaussianKernel
a spherical Gaussian interpolation kernel
Definition: vtkGaussianKernel.h:46
vtkGaussianKernel::F2
double F2
Definition: vtkGaussianKernel.h:101
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGeneralizedKernel
flexible, general interpolation kernels
Definition: vtkGeneralizedKernel.h:69
vtkGeneralizedKernel::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:155
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:38
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkGeneralizedKernel::ComputeWeights
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,...