VTK  9.2.20230205
vtkFitImplicitFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFitImplicitFunction.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See LICENSE file for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
74 #ifndef vtkFitImplicitFunction_h
75 #define vtkFitImplicitFunction_h
76 
77 #include "vtkFiltersPointsModule.h" // For export macro
78 #include "vtkPointCloudFilter.h"
79 
80 VTK_ABI_NAMESPACE_BEGIN
82 class vtkPointSet;
83 
84 class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
85 {
86 public:
88 
94  void PrintSelf(ostream& os, vtkIndent indent) override;
96 
98 
103  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
105 
107 
112  vtkSetClampMacro(Threshold, double, 0.0, VTK_FLOAT_MAX);
113  vtkGetMacro(Threshold, double);
115 
119  vtkMTimeType GetMTime() override;
120 
121 protected:
124 
126  double Threshold;
127 
128  // All derived classes must implement this method. Note that a side effect of
129  // the class is to populate the PointMap. Zero is returned if there is a failure.
130  int FilterPoints(vtkPointSet* input) override;
131 
132 private:
134  void operator=(const vtkFitImplicitFunction&) = delete;
135 };
136 
137 VTK_ABI_NAMESPACE_END
138 #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:120
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:110
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:282
#define VTK_FLOAT_MAX
Definition: vtkType.h:164