VTK  9.3.20240329
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
20 #ifndef vtkClosestNPointsStrategy_h
21 #define vtkClosestNPointsStrategy_h
22 
24 #include "vtkCommonDataModelModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy : public vtkClosestPointStrategy
28 {
29 public:
34 
36 
40  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
43  // Re-use any superclass signatures that we don't override.
45 
49  vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
50  double tol2, int& subId, double pcoords[3], double* weights) override;
51 
53 
56  vtkSetClampMacro(ClosestNPoints, int, 1, 100);
57  vtkGetMacro(ClosestNPoints, int);
59 
66  void CopyParameters(vtkFindCellStrategy* from) override;
67 
68 protected:
71 
73 
74 private:
76  void operator=(const vtkClosestNPointsStrategy&) = delete;
77 };
78 
79 VTK_ABI_NAMESPACE_END
80 #endif
abstract class to specify cell behavior
Definition: vtkCell.h:130
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.
void CopyParameters(vtkFindCellStrategy *from) override
Copy essential parameters between instances of this class.
static vtkClosestNPointsStrategy * New()
Construct a vtkFindCellStrategy subclass.
~vtkClosestNPointsStrategy() override
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 Initialize(vtkPointSet *ps) override
Provide the necessary initialization method (see superclass for more information).
helper class to manage the vtkPointSet::FindCell() METHOD
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:108
int vtkIdType
Definition: vtkType.h:315