VTK  9.4.20250302
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
26VTK_ABI_NAMESPACE_BEGIN
27class VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy : public vtkClosestPointStrategy
28{
29public:
34
36
40 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43 // Reuse 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
68protected:
71
73
74private:
76 void operator=(const vtkClosestNPointsStrategy&) = delete;
77};
78
79VTK_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
static vtkClosestNPointsStrategy * New()
Construct a vtkFindCellStrategy subclass.
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.
~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:332