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=========================================================================*/
53#ifndef vtkExtractEnclosedPoints_h
54#define vtkExtractEnclosedPoints_h
55
56#include "vtkFiltersPointsModule.h" // For export macro
57#include "vtkPointCloudFilter.h"
58
59class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
60{
61public:
63
68 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
80
82
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
108protected:
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
123
124private:
126 void operator=(const vtkExtractEnclosedPoints&) = delete;
127};
128
129#endif
Proxy object to connect input/output ports.
extract points inside of a closed polygonal surface
vtkPolyData * GetSurface(vtkInformationVector *sourceInfo)
Return a pointer to the enclosing surface.
static vtkExtractEnclosedPoints * New()
Standard methods for instantiation, type information, and printing.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
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
vtkPolyData * GetSurface()
Return a pointer to the enclosing surface.
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.
a simple class to control print indentation
Definition vtkIndent.h:34
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:67
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:85
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_FLOAT_MAX
Definition vtkType.h:163