VTK  9.2.6
vtkExtractPoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractPoints.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 =========================================================================*/
78 #ifndef vtkExtractPoints_h
79 #define vtkExtractPoints_h
80 
81 #include "vtkFiltersPointsModule.h" // For export macro
82 #include "vtkPointCloudFilter.h"
83 
85 class vtkPointSet;
86 
87 class VTKFILTERSPOINTS_EXPORT vtkExtractPoints : public vtkPointCloudFilter
88 {
89 public:
91 
95  static vtkExtractPoints* New();
97  void PrintSelf(ostream& os, vtkIndent indent) override;
99 
101 
105  vtkGetObjectMacro(ImplicitFunction, vtkImplicitFunction);
107 
109 
114  vtkSetMacro(ExtractInside, bool);
115  vtkGetMacro(ExtractInside, bool);
116  vtkBooleanMacro(ExtractInside, bool);
118 
122  vtkMTimeType GetMTime() override;
123 
124 protected:
126  ~vtkExtractPoints() override;
127 
130 
131  // All derived classes must implement this method. Note that a side effect of
132  // the class is to populate the PointMap. Zero is returned if there is a failure.
133  int FilterPoints(vtkPointSet* input) override;
134 
135 private:
136  vtkExtractPoints(const vtkExtractPoints&) = delete;
137  void operator=(const vtkExtractPoints&) = delete;
138 };
139 
140 #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:119
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:109
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287