VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkAbstractPointLocator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAbstractPointLocator.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
=========================================================================*/
29
#ifndef __vtkAbstractPointLocator_h
30
#define __vtkAbstractPointLocator_h
31
32
#include "
vtkLocator.h
"
33
34
class
vtkIdList
;
35
36
class
VTK_FILTERING_EXPORT
vtkAbstractPointLocator
:
public
vtkLocator
37
{
38
public
:
39
vtkTypeMacro(
vtkAbstractPointLocator
,
vtkLocator
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent);
41
43
47
virtual
vtkIdType
FindClosestPoint(
const
double
x[3]) = 0;
48
vtkIdType
FindClosestPoint(
double
x,
double
y,
double
z);
50
52
55
virtual
vtkIdType
FindClosestPointWithinRadius(
56
double
radius
,
const
double
x[3],
double
& dist2) = 0;
58
60
66
virtual
void
FindClosestNPoints(
67
int
N,
const
double
x[3],
vtkIdList
*result) = 0;
68
void
FindClosestNPoints(
int
N,
double
x,
double
y,
double
z,
69
vtkIdList
*result);
71
73
77
virtual
void
FindPointsWithinRadius(
double
R,
const
double
x[3],
78
vtkIdList
*result) = 0;
79
void
FindPointsWithinRadius(
double
R,
double
x,
double
y,
double
z,
80
vtkIdList
*result);
82
84
85
virtual
double
*
GetBounds
() {
return
this->Bounds; }
86
virtual
void
GetBounds(
double
*);
88
90
92
virtual
void
FreeSearchStructure
() = 0;
93
virtual
void
BuildLocator
() = 0;
94
virtual
void
GenerateRepresentation
(
int
level
,
vtkPolyData
*pd) = 0;
96
97
protected
:
98
vtkAbstractPointLocator
();
99
virtual
~
vtkAbstractPointLocator
();
100
101
double
Bounds[6];
// bounds of points
102
103
private
:
104
vtkAbstractPointLocator
(
const
vtkAbstractPointLocator
&);
// Not implemented.
105
void
operator=(
const
vtkAbstractPointLocator
&);
// Not implemented.
106
};
107
108
#endif
109
110
Generated on Fri Aug 2 2013 12:19:47 for VTK by
1.8.4