VTK  9.3.20240303
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 
68 VTK_ABI_NAMESPACE_BEGIN
70 class vtkPointSet;
71 
72 class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
73 {
74 public:
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 
107  vtkMTimeType GetMTime() override;
108 
109 protected:
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 
120 private:
122  void operator=(const vtkFitImplicitFunction&) = delete;
123 };
124 
125 VTK_ABI_NAMESPACE_END
126 #endif
extract points on the surface of an implicit function
~vtkFitImplicitFunction() override
vtkImplicitFunction * ImplicitFunction
int FilterPoints(vtkPointSet *input) override
static vtkFitImplicitFunction * New()
Standard methods for instantiating, obtaining type information, and printing information.
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:97
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_FLOAT_MAX
Definition: vtkType.h:152