VTK  9.3.0
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 
63  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
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:
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
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:29
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:59
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_FLOAT_MAX
Definition: vtkType.h:152