VTK  9.6.20260527
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
16
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
24VTK_ABI_NAMESPACE_BEGIN
26 "Use vtkJumpAndWalkCellLocator instead") VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy
28{
29public:
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
75protected:
78
80
81private:
83 void operator=(const vtkClosestNPointsStrategy&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#endif
abstract class to specify cell behavior
Definition vtkCell.h:130
vtkSmartPointer< vtkAbstractCellLocator > ConvertToCellLocator() override
Convert FindCellStrategy to cellLocator.
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.
int Initialize(vtkPointSet *ps) override
Provide the necessary initialization method (see superclass for more information).
provides thread-safe access to cells
a simple class to control print indentation
Definition vtkIndent.h:108
Hold a reference to a vtkObjectBase instance.
#define VTK_DEPRECATED_IN_9_7_0(reason)
int vtkIdType
Definition vtkType.h:363