VTK  9.7.1
vtkClosestNPointsStrategy.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
17 #ifndef vtkClosestNPointsStrategy_h
18 #define vtkClosestNPointsStrategy_h
19 
21 #include "vtkCommonDataModelModule.h" // For export macro
22 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_7_0
23 
24 VTK_ABI_NAMESPACE_BEGIN
26  "Use vtkJumpAndWalkCellLocator instead") VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy
28 {
29 public:
34 
36 
40  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
49 
50  // Reuse any superclass signatures that we don't override.
52 
56  vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
57  double tol2, int& subId, double pcoords[3], double* weights) override;
58 
60 
63  vtkSetClampMacro(ClosestNPoints, int, 1, 100);
64  vtkGetMacro(ClosestNPoints, int);
66 
73  void CopyParameters(vtkFindCellStrategy* from) override;
74 
75 protected:
77  ~vtkClosestNPointsStrategy() override;
78 
80 
81 private:
83  void operator=(const vtkClosestNPointsStrategy&) = delete;
84 };
85 
86 VTK_ABI_NAMESPACE_END
87 #endif
point locator adaptor to perform cell Location using the jump and walk approach
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.
implement a specific vtkPointSet::FindCell() strategy based on closest point
int vtkIdType
Definition: vtkType.h:363
static vtkClosestPointStrategy * New()
Construct a vtkFindCellStrategy subclass.
provides thread-safe access to cells
helper class to manage the vtkPointSet::FindCell() method
abstract class to specify cell behavior
Definition: vtkCell.h:50
a simple class to control print indentation
Definition: vtkIndent.h:28
int Initialize(vtkPointSet *ps) override
Provide the necessary initialization method (see superclass for more information).
void CopyParameters(vtkFindCellStrategy *from) override
Copy essential parameters between instances of this class.
implement a specific vtkPointSet::FindCell() strategy based on the N closest points ...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
#define VTK_DEPRECATED_IN_9_7_0(reason)
vtkSmartPointer< vtkAbstractCellLocator > ConvertToCellLocator() override
Convert FindCellStrategy to cellLocator.