VTK
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 =========================================================================*/
56 #ifndef vtkExtractPoints_h
57 #define vtkExtractPoints_h
58 
59 #include "vtkFiltersPointsModule.h" // For export macro
60 #include "vtkPointCloudFilter.h"
61 
63 class vtkPointSet;
64 
65 
66 class VTKFILTERSPOINTS_EXPORT vtkExtractPoints : public vtkPointCloudFilter
67 {
68 public:
70 
74  static vtkExtractPoints *New();
76  void PrintSelf(ostream& os, vtkIndent indent) override;
78 
80 
83  virtual void SetImplicitFunction(vtkImplicitFunction*);
84  vtkGetObjectMacro(ImplicitFunction,vtkImplicitFunction);
86 
88 
93  vtkSetMacro(ExtractInside,bool);
94  vtkGetMacro(ExtractInside,bool);
95  vtkBooleanMacro(ExtractInside,bool);
97 
101  vtkMTimeType GetMTime() override;
102 
103 protected:
105  ~vtkExtractPoints() override;
106 
109 
110  // All derived classes must implement this method. Note that a side effect of
111  // the class is to populate the PointMap. Zero is returned if there is a failure.
112  int FilterPoints(vtkPointSet *input) override;
113 
114 private:
115  vtkExtractPoints(const vtkExtractPoints&) = delete;
116  void operator=(const vtkExtractPoints&) = delete;
117 
118 };
119 
120 #endif
abstract interface for implicit functions
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkImplicitFunction * ImplicitFunction
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
virtual int FilterPoints(vtkPointSet *input)=0
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:33
extract points within an implicit function
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print information.
abstract class for filtering a point cloud