VTK
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 =========================================================================*/
53 #ifndef vtkExtractEnclosedPoints_h
54 #define vtkExtractEnclosedPoints_h
55 
56 #include "vtkFiltersPointsModule.h" // For export macro
57 #include "vtkPointCloudFilter.h"
58 
59 class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
60 {
61 public:
63 
66  static vtkExtractEnclosedPoints *New();
68  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
72 
77  void SetSurfaceData(vtkPolyData *pd);
78  void SetSurfaceConnection(vtkAlgorithmOutput* algOutput);
80 
82 
85  vtkPolyData *GetSurface();
86  vtkPolyData *GetSurface(vtkInformationVector *sourceInfo);
88 
90 
94  vtkSetMacro(CheckSurface,vtkTypeBool);
95  vtkBooleanMacro(CheckSurface,vtkTypeBool);
96  vtkGetMacro(CheckSurface,vtkTypeBool);
98 
100 
104  vtkSetClampMacro(Tolerance,double,0.0,VTK_FLOAT_MAX);
105  vtkGetMacro(Tolerance,double);
107 
108 protected:
110  ~vtkExtractEnclosedPoints() override;
111 
113  double Tolerance;
114 
115  // Internal structures for managing the intersection testing
117 
118  // Satisfy vtkPointCloudFilter superclass API
119  int FilterPoints(vtkPointSet *input) override;
120 
122  int FillInputPortInformation(int, vtkInformation *) override;
123 
124 private:
126  void operator=(const vtkExtractEnclosedPoints&) = delete;
127 };
128 
129 #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
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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:167
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.