VTK  9.2.6
vtkClosestNPointsStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkClosestNPointsStrategy.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef vtkClosestNPointsStrategy_h
33 #define vtkClosestNPointsStrategy_h
34 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy : public vtkClosestPointStrategy
39 {
40 public:
45 
47 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
54  // Re-use any superclass signatures that we don't override.
56 
60  vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
61  double tol2, int& subId, double pcoords[3], double* weights) override;
62 
64 
67  vtkSetClampMacro(ClosestNPoints, int, 1, 100);
68  vtkGetMacro(ClosestNPoints, int);
70 
77  void CopyParameters(vtkFindCellStrategy* from) override;
78 
79 protected:
81  ~vtkClosestNPointsStrategy() override;
82 
84 
85 private:
87  void operator=(const vtkClosestNPointsStrategy&) = delete;
88 };
89 
90 #endif
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:332
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:60
a simple class to control print indentation
Definition: vtkIndent.h:39
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.