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
52#ifndef vtkFitImplicitFunction_h
53#define vtkFitImplicitFunction_h
54
55#include "vtkFiltersPointsModule.h" // For export macro
56#include "vtkPointCloudFilter.h"
57
58VTK_ABI_NAMESPACE_BEGIN
60class vtkPointSet;
61
62class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
63{
64public:
66
72 void PrintSelf(ostream& os, vtkIndent indent) override;
74
76
81 vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
83
85
90 vtkSetClampMacro(Threshold, double, 0.0, VTK_FLOAT_MAX);
91 vtkGetMacro(Threshold, double);
93
98
99protected:
102
104 double Threshold;
105
106 // All derived classes must implement this method. Note that a side effect of
107 // the class is to populate the PointMap. Zero is returned if there is a failure.
108 int FilterPoints(vtkPointSet* input) override;
109
110private:
112 void operator=(const vtkFitImplicitFunction&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#endif
extract points on the surface of an implicit function
static vtkFitImplicitFunction * New()
Standard methods for instantiating, obtaining type information, and printing information.
~vtkFitImplicitFunction() override
vtkImplicitFunction * ImplicitFunction
int FilterPoints(vtkPointSet *input) override
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:38
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition vtkPointSet.h:68
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_FLOAT_MAX
Definition vtkType.h:152