VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Common
DataModel
vtkCellLocator.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
35
36
#ifndef vtkCellLocator_h
37
#define vtkCellLocator_h
38
39
#include "
vtkAbstractCellLocator.h
"
40
#include "vtkCommonDataModelModule.h"
// For export macro
41
#include "
vtkNew.h
"
// For vtkNew
42
43
VTK_ABI_NAMESPACE_BEGIN
44
class
vtkIntArray
;
45
46
class
VTKCOMMONDATAMODEL_EXPORT
vtkCellLocator
:
public
vtkAbstractCellLocator
47
{
48
public
:
50
53
vtkTypeMacro(
vtkCellLocator
,
vtkAbstractCellLocator
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
56
61
static
vtkCellLocator
*
New
();
62
66
void
SetNumberOfCellsPerBucket
(
int
N) { this->
SetNumberOfCellsPerNode
(N); }
67
int
GetNumberOfCellsPerBucket
() {
return
this->
NumberOfCellsPerNode
; }
68
69
// Reuse any superclass signatures that we don't override.
70
using
vtkAbstractCellLocator::FindCell
;
71
using
vtkAbstractCellLocator::FindClosestPoint
;
72
using
vtkAbstractCellLocator::FindClosestPointWithinRadius
;
73
using
vtkAbstractCellLocator::IntersectWithLine
;
74
81
int
IntersectWithLine
(
const
double
p1[3],
const
double
p2[3],
double
tol,
double
& t,
double
x[3],
82
double
pcoords[3],
int
& subId,
vtkIdType
& cellId,
vtkGenericCell
* cell)
override
;
83
93
int
IntersectWithLine
(
const
double
p1[3],
const
double
p2[3],
double
tol,
vtkPoints
* points,
94
vtkIdList
* cellIds,
vtkGenericCell
* cell)