VTK  9.2.6
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 =========================================================================*/
55 #ifndef vtkFitImplicitFunction_h
56 #define vtkFitImplicitFunction_h
57 
58 #include "vtkFiltersPointsModule.h" // For export macro
59 #include "vtkPointCloudFilter.h"
60 
62 class vtkPointSet;
63 
64 class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
65 {
66 public:
68 
72  static vtkFitImplicitFunction* New();
74  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
78 
82  virtual void SetImplicitFunction(vtkImplicitFunction*);
83  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
85 
87 
92  vtkSetClampMacro(Threshold, double, 0.0, VTK_FLOAT_MAX);
93  vtkGetMacro(Threshold, double);
95 
99  vtkMTimeType GetMTime() override;
100 
101 protected:
103  ~vtkFitImplicitFunction() override;
104 
106  double Threshold;
107 
108  // All derived classes must implement this method. Note that a side effect of
109  // the class is to populate the PointMap. Zero is returned if there is a failure.
110  int FilterPoints(vtkPointSet* input) override;
111 
112 private:
114  void operator=(const vtkFitImplicitFunction&) = delete;
115 };
116 
117 #endif
abstract interface for implicit functions
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
concrete class for storing a set of points
Definition: vtkPointSet.h:69
virtual int FilterPoints(vtkPointSet *input)=0
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
a simple class to control print indentation
Definition: vtkIndent.h:39
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