VTK
9.2.6
Filters
Points
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
=========================================================================*/
55
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
();
70
vtkTypeMacro(
vtkExtractEnclosedPoints
,
vtkPointCloudFilter
);
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
:
112
vtkExtractEnclosedPoints
();
113
~vtkExtractEnclosedPoints
()
override
;
114
115
vtkTypeBool
CheckSurface
;
116
double
Tolerance
;
117
118
// Internal structures for managing the intersection testing
119
vtkPolyData
*
Surface
;
120
121
// Satisfy vtkPointCloudFilter superclass API
122
int
FilterPoints
(
vtkPointSet
* input)
override
;
123
124
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
125
int
FillInputPortInformation
(
int
,
vtkInformation
*)
override
;
126
127
private
:
128
vtkExtractEnclosedPoints
(
const
vtkExtractEnclosedPoints
&) =
delete
;
129
void
operator=(
const
vtkExtractEnclosedPoints
&) =
delete
;
130
};
131
132
#endif
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition
vtkAlgorithmOutput.h:43
vtkExtractEnclosedPoints::GetSurface
vtkPolyData * GetSurface(vtkInformationVector *sourceInfo)
Return a pointer to the enclosing surface.
vtkExtractEnclosedPoints::New
static vtkExtractEnclosedPoints * New()
Standard methods for instantiation, type information, and printing.
vtkExtractEnclosedPoints::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkExtractEnclosedPoints::vtkExtractEnclosedPoints
vtkExtractEnclosedPoints()
vtkExtractEnclosedPoints::SetSurfaceConnection
void SetSurfaceConnection(vtkAlgorithmOutput *algOutput)
Set the surface to be used to test for containment.
vtkExtractEnclosedPoints::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkExtractEnclosedPoints::Tolerance
double Tolerance
Definition
vtkExtractEnclosedPoints.h:116
vtkExtractEnclosedPoints::FilterPoints
int FilterPoints(vtkPointSet *input) override
vtkExtractEnclosedPoints::Surface
vtkPolyData * Surface
Definition
vtkExtractEnclosedPoints.h:119
vtkExtractEnclosedPoints::GetSurface
vtkPolyData * GetSurface()
Return a pointer to the enclosing surface.
vtkExtractEnclosedPoints::SetSurfaceData
void SetSurfaceData(vtkPolyData *pd)
Set the surface to be used to test for containment.
vtkExtractEnclosedPoints::~vtkExtractEnclosedPoints
~vtkExtractEnclosedPoints() override
vtkExtractEnclosedPoints::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractEnclosedPoints::CheckSurface
vtkTypeBool CheckSurface
Definition
vtkExtractEnclosedPoints.h:115
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkPointCloudFilter::vtkPointCloudFilter
vtkPointCloudFilter()
vtkPointSet
concrete class for storing a set of points
Definition
vtkPointSet.h:70
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition
vtkPolyData.h:91
vtkTypeBool
int vtkTypeBool
Definition
vtkABI.h:69
vtkPointCloudFilter.h
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition
vtkType.h:163
Generated on Tue Jan 28 2025 00:00:00 for VTK by
1.13.2