VTK  9.3.0
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
53 #ifndef vtkExtractEnclosedPoints_h
54 #define vtkExtractEnclosedPoints_h
55 
56 #include "vtkFiltersPointsModule.h" // For export macro
57 #include "vtkPointCloudFilter.h"
58 
59 VTK_ABI_NAMESPACE_BEGIN
60 class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
61 {
62 public:
64 
69  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
73 
81 
83 
89 
91 
95  vtkSetMacro(CheckSurface, vtkTypeBool);
96  vtkBooleanMacro(CheckSurface, vtkTypeBool);
97  vtkGetMacro(CheckSurface, vtkTypeBool);
99 
101 
105  vtkSetClampMacro(Tolerance, double, 0.0, VTK_FLOAT_MAX);
106  vtkGetMacro(Tolerance, double);
108 
109 protected:
112 
114  double Tolerance;
115 
116  // Internal structures for managing the intersection testing
118 
119  // Satisfy vtkPointCloudFilter superclass API
120  int FilterPoints(vtkPointSet* input) override;
121 
124 
125 private:
127  void operator=(const vtkExtractEnclosedPoints&) = delete;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #endif
Proxy object to connect input/output ports.
extract points inside of a closed polygonal surface
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkPolyData * GetSurface()
Return a pointer to the enclosing surface.
void SetSurfaceConnection(vtkAlgorithmOutput *algOutput)
Set the surface to be used to test for containment.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
int FilterPoints(vtkPointSet *input) override
static vtkExtractEnclosedPoints * New()
Standard methods for instantiation, type information, and printing.
void SetSurfaceData(vtkPolyData *pd)
Set the surface to be used to test for containment.
~vtkExtractEnclosedPoints() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPolyData * GetSurface(vtkInformationVector *sourceInfo)
Return a pointer to the enclosing surface.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:68
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_FLOAT_MAX
Definition: vtkType.h:152