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 =========================================================================*/
56 #ifndef vtkExtractEnclosedPoints_h
57 #define vtkExtractEnclosedPoints_h
58 
59 #include "vtkFiltersPointsModule.h" // For export macro
60 #include "vtkPointCloudFilter.h"
61 
62 class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
63 {
64 public:
66 
69  static vtkExtractEnclosedPoints* New();
71  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
75 
80  void SetSurfaceData(vtkPolyData* pd);
81  void SetSurfaceConnection(vtkAlgorithmOutput* algOutput);
83 
85 
88  vtkPolyData* GetSurface();
89  vtkPolyData* GetSurface(vtkInformationVector* sourceInfo);
91 
93 
97  vtkSetMacro(CheckSurface, vtkTypeBool);
98  vtkBooleanMacro(CheckSurface, vtkTypeBool);
99  vtkGetMacro(CheckSurface, vtkTypeBool);
101 
103 
107  vtkSetClampMacro(Tolerance, double, 0.0, VTK_FLOAT_MAX);
108  vtkGetMacro(Tolerance, double);
110 
111 protected:
113  ~vtkExtractEnclosedPoints() override;
114 
116  double Tolerance;
117 
118  // Internal structures for managing the intersection testing
120 
121  // Satisfy vtkPointCloudFilter superclass API
122  int FilterPoints(vtkPointSet* input) override;
123 
125  int FillInputPortInformation(int, vtkInformation*) override;
126 
127 private:
129  void operator=(const vtkExtractEnclosedPoints&) = delete;
130 };
131 
132 #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:69
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
virtual int FilterPoints(vtkPointSet *input)=0
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
a simple class to control print indentation
Definition: vtkIndent.h:39
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.