VTK  9.3.20240328
vtkEllipsoidalGaussianKernel.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
38 #ifndef vtkEllipsoidalGaussianKernel_h
39 #define vtkEllipsoidalGaussianKernel_h
40 
41 #include "vtkFiltersPointsModule.h" // For export macro
42 #include "vtkGeneralizedKernel.h"
43 #include "vtkStdString.h" // For vtkStdString ivars
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class vtkIdList;
47 class vtkDataArray;
48 class vtkDoubleArray;
49 
50 class VTKFILTERSPOINTS_EXPORT vtkEllipsoidalGaussianKernel : public vtkGeneralizedKernel
51 {
52 public:
54 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
67 
68  // Re-use any superclass signatures that we don't override.
70 
86  double x[3], vtkIdList* pIds, vtkDoubleArray* prob, vtkDoubleArray* weights) override;
87 
89 
93  vtkSetMacro(UseNormals, bool);
94  vtkGetMacro(UseNormals, bool);
95  vtkBooleanMacro(UseNormals, bool);
97 
99 
105  vtkSetMacro(NormalsArrayName, vtkStdString);
106  vtkGetMacro(NormalsArrayName, vtkStdString);
108 
110 
114  vtkSetMacro(UseScalars, bool);
115  vtkGetMacro(UseScalars, bool);
116  vtkBooleanMacro(UseScalars, bool);
118 
120 
126  vtkSetMacro(ScalarsArrayName, vtkStdString);
127  vtkGetMacro(ScalarsArrayName, vtkStdString);
129 
131 
136  vtkSetClampMacro(ScaleFactor, double, 0.0, VTK_DOUBLE_MAX);
137  vtkGetMacro(ScaleFactor, double);
139 
141 
146  vtkSetClampMacro(Sharpness, double, 1, VTK_FLOAT_MAX);
147  vtkGetMacro(Sharpness, double);
149 
151 
157  vtkSetClampMacro(Eccentricity, double, 0.000001, VTK_FLOAT_MAX);
158  vtkGetMacro(Eccentricity, double);
160 
161 protected:
164 
167 
170 
171  double ScaleFactor;
172  double Sharpness;
173  double Eccentricity;
174 
175  // Internal structure to reduce computation
176  double F2, E2;
179 
180  void FreeStructures() override;
181 
182 private:
184  void operator=(const vtkEllipsoidalGaussianKernel&) = delete;
185 };
186 
187 VTK_ABI_NAMESPACE_END
188 #endif
abstract class to quickly locate points in 3-space
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:154
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
dynamic, self-adjusting array of double
an ellipsoidal Gaussian interpolation kernel
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, obtaining type information, and printing.
static vtkEllipsoidalGaussianKernel * New()
Standard methods for instantiation, obtaining type information, and printing.
void FreeStructures() override
~vtkEllipsoidalGaussianKernel() 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,...
void Initialize(vtkAbstractPointLocator *loc, vtkDataSet *ds, vtkPointData *pd) override
Initialize the kernel.
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:132
a simple class to control print indentation
Definition: vtkIndent.h:108
represent and manipulate point attribute data
Definition: vtkPointData.h:139
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:78
int vtkIdType
Definition: vtkType.h:315
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
#define VTK_FLOAT_MAX
Definition: vtkType.h:152