VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkSelectEnclosedPoints.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSelectEnclosedPoints.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
=========================================================================*/
45
#ifndef __vtkSelectEnclosedPoints_h
46
#define __vtkSelectEnclosedPoints_h
47
48
#include "
vtkDataSetAlgorithm.h
"
49
50
class
vtkUnsignedCharArray
;
51
class
vtkCellLocator
;
52
class
vtkIdList
;
53
class
vtkGenericCell
;
54
55
56
class
VTK_GRAPHICS_EXPORT
vtkSelectEnclosedPoints
:
public
vtkDataSetAlgorithm
57
{
58
public
:
60
61
vtkTypeMacro(
vtkSelectEnclosedPoints
,
vtkDataSetAlgorithm
);
62
void
PrintSelf
(ostream& os,
vtkIndent
indent);
64
66
static
vtkSelectEnclosedPoints
*
New
();
67
69
72
void
SetSurface(
vtkPolyData
*pd);
73
void
SetSurfaceConnection(
vtkAlgorithmOutput
* algOutput);
75
77
78
vtkPolyData
*GetSurface();
79
vtkPolyData
*GetSurface(
vtkInformationVector
*sourceInfo);
81
83
86
vtkSetMacro(InsideOut,
int
);
87
vtkBooleanMacro(InsideOut,
int
);
88
vtkGetMacro(InsideOut,
int
);
90
92
94
vtkSetMacro(CheckSurface,
int
);
95
vtkBooleanMacro(CheckSurface,
int
);
96
vtkGetMacro(CheckSurface,
int
);
98
101
int
IsInside(
vtkIdType
inputPtId);
102
104
106
vtkSetClampMacro(Tolerance,
double
,0.0,
VTK_LARGE_FLOAT
);
107
vtkGetMacro(Tolerance,
double
);
109
111
115
void
Initialize(
vtkPolyData
*surface);
116
int
IsInsideSurface(
double
x,
double
y,
double
z);
117
int
IsInsideSurface(
double
x[3]);
118
void
Complete();
120
121
protected
:
122
vtkSelectEnclosedPoints
();
123
~
vtkSelectEnclosedPoints
();
124
125
int
CheckSurface
;
126
int
InsideOut
;
127
double
Tolerance
;
128
129
int
IsSurfaceClosed(
vtkPolyData
*surface);
130
vtkUnsignedCharArray
*
InsideOutsideArray
;
131
132
// Internal structures for accelerating the intersection test
133
vtkCellLocator
*
CellLocator
;
134
vtkIdList
*
CellIds
;
135
vtkGenericCell
*
Cell
;
136
vtkPolyData
*
Surface
;
137
double
Bounds[6];
138
double
Length
;
139
140
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
141
virtual
int
FillInputPortInformation
(
int
,
vtkInformation
*);
142
143
virtual
void
ReportReferences
(
vtkGarbageCollector
*);
144
145
private
:
146
vtkSelectEnclosedPoints
(
const
vtkSelectEnclosedPoints
&);
// Not implemented.
147
void
operator=(
const
vtkSelectEnclosedPoints
&);
// Not implemented.
148
};
149
150
#endif
Generated on Sun Sep 9 2012 13:03:31 for VTK by
1.8.1.2