VTK  9.3.1
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
43 #ifndef vtkFitImplicitFunction_h
44 #define vtkFitImplicitFunction_h
45 
46 #include "vtkFiltersPointsModule.h" // For export macro
47 #include "vtkPointCloudFilter.h"
48 
49 VTK_ABI_NAMESPACE_BEGIN
51 class vtkPointSet;
52 
53 class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
54 {
55 public:
57 
61  static vtkFitImplicitFunction* New();
63  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
71  virtual void SetImplicitFunction(vtkImplicitFunction*);
72  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
74 
76 
81  vtkSetClampMacro(Threshold, double, 0.0, VTK_FLOAT_MAX);
82  vtkGetMacro(Threshold, double);
84 
88  vtkMTimeType GetMTime() override;
89 
90 protected:
92  ~vtkFitImplicitFunction() override;
93 
95  double Threshold;
96 
97  // All derived classes must implement this method. Note that a side effect of
98  // the class is to populate the PointMap. Zero is returned if there is a failure.
99  int FilterPoints(vtkPointSet* input) override;
100 
101 private:
103  void operator=(const vtkFitImplicitFunction&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
abstract interface for implicit functions
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
concrete class for storing a set of points
Definition: vtkPointSet.h:58
virtual int FilterPoints(vtkPointSet *input)=0
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:152
a simple class to control print indentation
Definition: vtkIndent.h:28
extract points on the surface of an implicit function
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkImplicitFunction * ImplicitFunction
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print information.
abstract class for filtering a point cloud