VTK  9.3.20240328
vtkExtractPoints.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
66 #ifndef vtkExtractPoints_h
67 #define vtkExtractPoints_h
68 
69 #include "vtkFiltersPointsModule.h" // For export macro
70 #include "vtkPointCloudFilter.h"
71 
72 VTK_ABI_NAMESPACE_BEGIN
74 class vtkPointSet;
75 
76 class VTKFILTERSPOINTS_EXPORT vtkExtractPoints : public vtkPointCloudFilter
77 {
78 public:
80 
84  static vtkExtractPoints* New();
86  void PrintSelf(ostream& os, vtkIndent indent) override;
88 
90 
94  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
96 
98 
103  vtkSetMacro(ExtractInside, bool);
104  vtkGetMacro(ExtractInside, bool);
105  vtkBooleanMacro(ExtractInside, bool);
107 
111  vtkMTimeType GetMTime() override;
112 
113 protected:
115  ~vtkExtractPoints() override;
116 
119 
120  // All derived classes must implement this method. Note that a side effect of
121  // the class is to populate the PointMap. Zero is returned if there is a failure.
122  int FilterPoints(vtkPointSet* input) override;
123 
124 private:
125  vtkExtractPoints(const vtkExtractPoints&) = delete;
126  void operator=(const vtkExtractPoints&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
extract points within an implicit function
~vtkExtractPoints() override
vtkImplicitFunction * ImplicitFunction
int FilterPoints(vtkPointSet *input) override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify the implicit function for inside/outside checks.
vtkMTimeType GetMTime() override
Return the MTime taking into account changes to the implicit function.
static vtkExtractPoints * New()
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:108
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:97
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270