VTK  9.6.20260527
vtkCellLocatorStrategy.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
15
16#ifndef vtkCellLocatorStrategy_h
17#define vtkCellLocatorStrategy_h
18
19#include "vtkCommonDataModelModule.h" // For export macro
20#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_7_0
21#include "vtkFindCellStrategy.h"
22
23VTK_ABI_NAMESPACE_BEGIN
25
26class VTK_DEPRECATED_IN_9_7_0("Use any vtkAbstractCellLocator subclass instead")
27 VTKCOMMONDATAMODEL_EXPORT vtkCellLocatorStrategy : public vtkFindCellStrategy
28{
29public:
34
36
40 void PrintSelf(ostream& os, vtkIndent indent) override;
42
49
54 int Initialize(vtkPointSet* ps) override;
55
59 vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
60 double tol2, int& subId, double pcoords[3], double* weights) override;
61
65 vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3],
66 vtkGenericCell* cell, vtkIdType& cellId, int& subId, double& dist2, int& inside) override;
67
71 bool InsideCellBounds(double x[3], vtkIdType cellId) override;
72
74
82
89 void CopyParameters(vtkFindCellStrategy* from) override;
90
91protected:
94
96
97private:
99 void operator=(const vtkCellLocatorStrategy&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif
an abstract base class for locators which find cells
bool InsideCellBounds(double x[3], vtkIdType cellId) override
Implement the specific strategy.
vtkAbstractCellLocator * CellLocator
vtkSmartPointer< vtkAbstractCellLocator > ConvertToCellLocator() override
Convert FindCellStrategy to cellLocator.
virtual void SetCellLocator(vtkAbstractCellLocator *)
Set / get an instance of vtkAbstractCellLocator which is used to implement the strategy for FindCell(...
~vtkCellLocatorStrategy() override
static vtkCellLocatorStrategy * New()
Construct a vtkFindCellStrategy subclass.
void CopyParameters(vtkFindCellStrategy *from) override
Copy essential parameters between instances of this class.
int Initialize(vtkPointSet *ps) override
Provide necessary initialization method (see superclass for more information).
vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override
Implement the specific strategy.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3], vtkGenericCell *cell, vtkIdType &cellId, int &subId, double &dist2, int &inside) override
Implement the specific strategy.
abstract class to specify cell behavior
Definition vtkCell.h:130
provides thread-safe access to cells
a simple class to control print indentation
Definition vtkIndent.h:108
concrete class for storing a set of points
Definition vtkPointSet.h:98
Hold a reference to a vtkObjectBase instance.
#define VTK_DEPRECATED_IN_9_7_0(reason)
int vtkIdType
Definition vtkType.h:363