VTK
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 =========================================================================*/
52 #ifndef vtkFitImplicitFunction_h
53 #define vtkFitImplicitFunction_h
54 
55 #include "vtkFiltersPointsModule.h" // For export macro
56 #include "vtkPointCloudFilter.h"
57 
59 class vtkPointSet;
60 
61 
62 class VTKFILTERSPOINTS_EXPORT vtkFitImplicitFunction : public vtkPointCloudFilter
63 {
64 public:
66 
70  static vtkFitImplicitFunction *New();
72  void PrintSelf(ostream& os, vtkIndent indent) override;
74 
76 
80  virtual void SetImplicitFunction(vtkImplicitFunction*);
81  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
83 
85 
90  vtkSetClampMacro(Threshold,double,0.0,VTK_FLOAT_MAX);
91  vtkGetMacro(Threshold,double);
93 
97  vtkMTimeType GetMTime() override;
98 
99 protected:
101  ~vtkFitImplicitFunction() override;
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 
110 private:
112  void operator=(const vtkFitImplicitFunction&) = delete;
113 
114 };
115 
116 #endif
vtkPointCloudFilter.h
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition: vtkPointCloudFilter.h:66
vtkPointCloudFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFitImplicitFunction::ImplicitFunction
vtkImplicitFunction * ImplicitFunction
Definition: vtkFitImplicitFunction.h:103
vtkFitImplicitFunction
extract points on the surface of an implicit function
Definition: vtkFitImplicitFunction.h:62
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:60
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
vtkPointCloudFilter::FilterPoints
virtual int FilterPoints(vtkPointSet *input)=0
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
vtkFitImplicitFunction::Threshold
double Threshold
Definition: vtkFitImplicitFunction.h:104
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302