VTK  9.3.1
vtkExtractEnclosedPoints.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
44 #ifndef vtkExtractEnclosedPoints_h
45 #define vtkExtractEnclosedPoints_h
46 
47 #include "vtkFiltersPointsModule.h" // For export macro
48 #include "vtkPointCloudFilter.h"
49 
50 VTK_ABI_NAMESPACE_BEGIN
51 class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
52 {
53 public:
55 
58  static vtkExtractEnclosedPoints* New();
60  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
69  void SetSurfaceData(vtkPolyData* pd);
70  void SetSurfaceConnection(vtkAlgorithmOutput* algOutput);
72 
74 
77  vtkPolyData* GetSurface();
78  vtkPolyData* GetSurface(vtkInformationVector* sourceInfo);
80 
82 
86  vtkSetMacro(CheckSurface, vtkTypeBool);
87  vtkBooleanMacro(CheckSurface, vtkTypeBool);
88  vtkGetMacro(CheckSurface, vtkTypeBool);
90 
92 
96  vtkSetClampMacro(Tolerance, double, 0.0, VTK_FLOAT_MAX);
97  vtkGetMacro(Tolerance, double);
99 
100 protected:
102  ~vtkExtractEnclosedPoints() override;
103 
105  double Tolerance;
106 
107  // Internal structures for managing the intersection testing
109 
110  // Satisfy vtkPointCloudFilter superclass API
111  int FilterPoints(vtkPointSet* input) override;
112 
114  int FillInputPortInformation(int, vtkInformation*) override;
115 
116 private:
118  void operator=(const vtkExtractEnclosedPoints&) = delete;
119 };
120 
121 VTK_ABI_NAMESPACE_END
122 #endif
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Store vtkAlgorithm input/output information.
extract points inside of a closed polygonal surface
concrete class for storing a set of points
Definition: vtkPointSet.h:58
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
virtual int FilterPoints(vtkPointSet *input)=0
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_FLOAT_MAX
Definition: vtkType.h:152
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print information.
Store zero or more vtkInformation instances.
abstract class for filtering a point cloud
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.