VTK  9.4.20241221
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
43#include "vtkStdString.h" // For vtkStdString ivars
44
45VTK_ABI_NAMESPACE_BEGIN
46class vtkIdList;
47class vtkDataArray;
48class vtkDoubleArray;
49
50class VTKFILTERSPOINTS_EXPORT vtkEllipsoidalGaussianKernel : public vtkGeneralizedKernel
51{
52public:
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
161protected:
164
167
170
172 double Sharpness;
174
175 // Internal structure to reduce computation
176 double F2, E2;
179
180 void FreeStructures() override;
181
182private:
184 void operator=(const vtkEllipsoidalGaussianKernel&) = delete;
185};
186
187VTK_ABI_NAMESPACE_END
188#endif
abstract class to quickly locate points in 3-space
abstract superclass for arrays of numeric data
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:133
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate point attribute data
Wrapper around std::string to keep symbols short.
int vtkIdType
Definition vtkType.h:315
#define VTK_DOUBLE_MAX
Definition vtkType.h:154
#define VTK_FLOAT_MAX
Definition vtkType.h:152