VTK  9.3.20240424
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
73#ifndef vtkExtractEnclosedPoints_h
74#define vtkExtractEnclosedPoints_h
75
76#include "vtkFiltersPointsModule.h" // For export macro
77#include "vtkPointCloudFilter.h"
78
79VTK_ABI_NAMESPACE_BEGIN
80class VTKFILTERSPOINTS_EXPORT vtkExtractEnclosedPoints : public vtkPointCloudFilter
81{
82public:
84
89 void PrintSelf(ostream& os, vtkIndent indent) override;
91
93
101
103
109
111
115 vtkSetMacro(CheckSurface, vtkTypeBool);
116 vtkBooleanMacro(CheckSurface, vtkTypeBool);
117 vtkGetMacro(CheckSurface, vtkTypeBool);
119
121
125 vtkSetClampMacro(Tolerance, double, 0.0, VTK_FLOAT_MAX);
126 vtkGetMacro(Tolerance, double);
128
129protected:
132
134 double Tolerance;
135
136 // Internal structures for managing the intersection testing
138
139 // Satisfy vtkPointCloudFilter superclass API
140 int FilterPoints(vtkPointSet* input) override;
141
144
145private:
147 void operator=(const vtkExtractEnclosedPoints&) = delete;
148};
149
150VTK_ABI_NAMESPACE_END
151#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:108
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:98
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_FLOAT_MAX
Definition vtkType.h:152