VTK
dox
Common
DataModel
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
=========================================================================*/
33
#ifndef vtkAbstractPointLocator_h
34
#define vtkAbstractPointLocator_h
35
36
#include "vtkCommonDataModelModule.h"
// For export macro
37
#include "
vtkLocator.h
"
38
39
class
vtkIdList
;
40
41
class
VTKCOMMONDATAMODEL_EXPORT
vtkAbstractPointLocator
:
public
vtkLocator
42
{
43
public
:
45
48
vtkTypeMacro(
vtkAbstractPointLocator
,
vtkLocator
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent) VTK_OVERRIDE;
51
53
59
virtual
vtkIdType
FindClosestPoint(
const
double
x[3]) = 0;
60
vtkIdType
FindClosestPoint(
double
x,
double
y,
double
z);
62
68
virtual
vtkIdType
FindClosestPointWithinRadius
(
69
double
radius
,
const
double
x[3],
double
& dist2) = 0;
70
72
80
virtual
void
FindClosestNPoints(
81
int
N,
const
double
x[3],
vtkIdList
*result) = 0;
82
void
FindClosestNPoints(
int
N,
double
x,
double
y,
double
z,
83
vtkIdList
*result);
85
87
93
virtual
void
FindPointsWithinRadius(
double
R,
const
double
x[3],
94
vtkIdList
*result) = 0;
95
void
FindPointsWithinRadius(
double
R,
double
x,
double
y,
double
z,
96
vtkIdList
*result);
98
102
virtual
double
*GetBounds() {
return
this->Bounds; }
103
virtual
void
GetBounds(
double
*);
104
106
110
vtkGetMacro(NumberOfBuckets,
vtkIdType
);
112
113
protected
:
114
vtkAbstractPointLocator
();
115
~vtkAbstractPointLocator
() VTK_OVERRIDE;
116
117
double
Bounds[6];
// bounds of points
118
vtkIdType
NumberOfBuckets;
// total size of locator
119
120
private:
121
vtkAbstractPointLocator
(const
vtkAbstractPointLocator
&) VTK_DELETE_FUNCTION;
122
void
operator=(const
vtkAbstractPointLocator
&) VTK_DELETE_FUNCTION;
123
};
124
125
#endif
vtkIdType
int vtkIdType
Definition:
vtkType.h:287
vtkLocator.h
vtkAbstractPointLocator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLocator
abstract base class for objects that accelerate spatial searches
Definition:
vtkLocator.h:70
vtkAbstractPointLocator::~vtkAbstractPointLocator
~vtkAbstractPointLocator() override
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:37
vtkAbstractPointLocator::vtkAbstractPointLocator
vtkAbstractPointLocator()
vtkAbstractPointLocator
abstract class to quickly locate points in 3-space
Definition:
vtkAbstractPointLocator.h:42
vtkX3D::radius
@ radius
Definition:
vtkX3D.h:252
vtkAbstractPointLocator::FindClosestPointWithinRadius
virtual vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double &dist2)=0
Given a position x and a radius r, return the id of the point closest to the point in that radius.
Generated by
1.8.20