VTK  9.2.6
vtkExtractEnclosedPoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractEnclosedPoints.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
65 #ifndef vtkExtractEnclosedPoints_h
66 #define vtkExtractEnclosedPoints_h
67 
68 #include "vtkFiltersPointsModule.h" // For export macro
69 #include "vtkPointCloudFilter.h"
70 
71 class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
72 {
73 public:
75 
80  void PrintSelf(ostream& os, vtkIndent indent) override;
82 
84 
92 
94 
100 
102 
106  vtkSetMacro(CheckSurface, vtkTypeBool);
107  vtkBooleanMacro(CheckSurface, vtkTypeBool);
108  vtkGetMacro(CheckSurface, vtkTypeBool);
110 
112 
116  vtkSetClampMacro(Tolerance, double, 0.0, VTK_FLOAT_MAX);
117  vtkGetMacro(Tolerance, double);
119 
120 protected:
123 
125  double Tolerance;
126 
127  // Internal structures for managing the intersection testing
129 
130  // Satisfy vtkPointCloudFilter superclass API
131  int FilterPoints(vtkPointSet* input) override;
132 
135 
136 private:
138  void operator=(const vtkExtractEnclosedPoints&) = delete;
139 };
140 
141 #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:49
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:79
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:100
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FLOAT_MAX
Definition: vtkType.h:163