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 =========================================================================*/
40 #ifndef vtkGaussianKernel_h
41 #define vtkGaussianKernel_h
42 
43 #include "vtkFiltersPointsModule.h" // For export macro
44 #include "vtkGeneralizedKernel.h"
45 
46 class vtkIdList;
47 class vtkDoubleArray;
48 
49 
50 class VTKFILTERSPOINTS_EXPORT vtkGaussianKernel : public vtkGeneralizedKernel
51 {
52 public:
54 
59  void PrintSelf(ostream& os, vtkIndent indent);
61 
67  vtkPointData *pd);
68 
69  // Re-use any superclass signatures that we don't override.
71 
86  virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds,
87  vtkDoubleArray *prob, vtkDoubleArray *weights);
88 
90 
95  vtkSetClampMacro(Sharpness,double,1,VTK_FLOAT_MAX);
96  vtkGetMacro(Sharpness,double);
98 
99 protected:
102 
103  double Sharpness;
104 
105  // Internal structure to reduce computation
106  double F2;
107 
108 private:
109  vtkGaussianKernel(const vtkGaussianKernel&) VTK_DELETE_FUNCTION;
110  void operator=(const vtkGaussianKernel&) VTK_DELETE_FUNCTION;
111 };
112 
113 #endif
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:38
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkGaussianKernel::Sharpness
double Sharpness
Definition: vtkGaussianKernel.h:103
vtkGaussianKernel::Initialize
virtual void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd)
Initialize the kernel.
vtkGeneralizedKernel.h
vtkGaussianKernel
a spherical Gaussian interpolation kernel
Definition: vtkGaussianKernel.h:51
vtkGaussianKernel::F2
double F2
Definition: vtkGaussianKernel.h:106
vtkGaussianKernel::vtkGaussianKernel
vtkGaussianKernel()
vtkGaussianKernel::ComputeWeights
virtual vtkIdType ComputeWeights(double x[3], vtkIdList *pIds, vtkDoubleArray *prob, vtkDoubleArray *weights)
Given a point x, a list of basis points pIds, and a probability weighting function prob,...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGeneralizedKernel
flexible, general interpolation kernels
Definition: vtkGeneralizedKernel.h:71
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:37
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:161
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkGaussianKernel::New
static vtkGaussianKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
vtkGaussianKernel::~vtkGaussianKernel
~vtkGaussianKernel()
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition: vtkAbstractPointLocator.h:42
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:42
vtkGaussianKernel::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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,...