VTK  9.4.20241212
vtkFitImplicitFunction.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
62#ifndef vtkFitImplicitFunction_h
63#define vtkFitImplicitFunction_h
64
65#include "vtkFiltersPointsModule.h" // For export macro
66#include "vtkPointCloudFilter.h"
67
68VTK_ABI_NAMESPACE_BEGIN
70class vtkPointSet;
71
72class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
73{
74public:
76
82 void PrintSelf(ostream& os, vtkIndent indent) override;
84
86
91 vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
93
95
100 vtkSetClampMacro(Threshold, double, 0.0, VTK_FLOAT_MAX);
101 vtkGetMacro(Threshold, double);
103
108
109protected:
112
114 double Threshold;
115
116 // All derived classes must implement this method. Note that a side effect of
117 // the class is to populate the PointMap. Zero is returned if there is a failure.
118 int FilterPoints(vtkPointSet* input) override;
119
120private:
122 void operator=(const vtkFitImplicitFunction&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
extract points on the surface of an implicit function
static vtkFitImplicitFunction * New()
Standard methods for instantiating, obtaining type information, and printing information.
~vtkFitImplicitFunction() override
vtkImplicitFunction * ImplicitFunction
int FilterPoints(vtkPointSet *input) override
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify the implicit function defining a surface on which points are to be extracted.
vtkMTimeType GetMTime() override
Return the MTime taking into account changes to the implicit function.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
abstract interface for implicit functions
a simple class to control print indentation
Definition vtkIndent.h:108
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition vtkPointSet.h:98
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_FLOAT_MAX
Definition vtkType.h:152