VTK
dox
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
=========================================================================*/
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
();
67
vtkTypeMacro(
vtkExtractEnclosedPoints
,
vtkPointCloudFilter
);
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
:
109
vtkExtractEnclosedPoints
();
110
~vtkExtractEnclosedPoints
()
override
;
111
112
vtkTypeBool
CheckSurface
;
113
double
Tolerance
;
114
115
// Internal structures for managing the intersection testing
116
vtkPolyData
*
Surface
;
117
118
// Satisfy vtkPointCloudFilter superclass API
119
int
FilterPoints
(
vtkPointSet
*input)
override
;
120
121
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
122
int
FillInputPortInformation
(
int
,
vtkInformation
*)
override
;
123
124
private
:
125
vtkExtractEnclosedPoints
(
const
vtkExtractEnclosedPoints
&) =
delete
;
126
void
operator=(
const
vtkExtractEnclosedPoints
&) =
delete
;
127
};
128
129
#endif
vtkPointCloudFilter.h
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition:
vtkPointCloudFilter.h:67
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkExtractEnclosedPoints::~vtkExtractEnclosedPoints
~vtkExtractEnclosedPoints() override
vtkExtractEnclosedPoints::FilterPoints
int FilterPoints(vtkPointSet *input) override
vtkExtractEnclosedPoints::Tolerance
double Tolerance
Definition:
vtkExtractEnclosedPoints.h:113
vtkExtractEnclosedPoints
extract points inside of a closed polygonal surface
Definition:
vtkExtractEnclosedPoints.h:60
vtkExtractEnclosedPoints::SetSurfaceData
void SetSurfaceData(vtkPolyData *pd)
Set the surface to be used to test for containment.
vtkExtractEnclosedPoints::GetSurface
vtkPolyData * GetSurface()
Return a pointer to the enclosing surface.
vtkExtractEnclosedPoints::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractEnclosedPoints::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkExtractEnclosedPoints::GetSurface
vtkPolyData * GetSurface(vtkInformationVector *sourceInfo)
vtkExtractEnclosedPoints::Surface
vtkPolyData * Surface
Definition:
vtkExtractEnclosedPoints.h:116
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition:
vtkType.h:167
vtkExtractEnclosedPoints::SetSurfaceConnection
void SetSurfaceConnection(vtkAlgorithmOutput *algOutput)
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkExtractEnclosedPoints::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractEnclosedPoints::vtkExtractEnclosedPoints
vtkExtractEnclosedPoints()
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition:
vtkAlgorithmOutput.h:40
vtkExtractEnclosedPoints::CheckSurface
vtkTypeBool CheckSurface
Definition:
vtkExtractEnclosedPoints.h:112
vtkPointSet
abstract class for specifying dataset behavior
Definition:
vtkPointSet.h:43
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:86
vtkExtractEnclosedPoints::New
static vtkExtractEnclosedPoints * New()
Standard methods for instantiation, type information, and printing.
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated by
1.8.20