VTK  9.0.2
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 =========================================================================*/
29 #ifndef vtkClosestNPointsStrategy_h
30 #define vtkClosestNPointsStrategy_h
31 
33 #include "vtkCommonDataModelModule.h" // For export macro
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy : public vtkClosestPointStrategy
36 {
37 public:
42 
44 
48  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
51  // Re-use any superclass signatures that we don't override.
53 
57  vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
58  double tol2, int& subId, double pcoords[3], double* weights) override;
59 
61 
64  vtkSetClampMacro(ClosestNPoints, int, 1, 100);
65  vtkGetMacro(ClosestNPoints, int);
67 
68 protected:
71 
73 
74 private:
76  void operator=(const vtkClosestNPointsStrategy&) = delete;
77 };
78 
79 #endif
abstract class to specify cell behavior
Definition: vtkCell.h:57
implement a specific vtkPointSet::FindCell() strategy based on the N closest points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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).
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:34
int vtkIdType
Definition: vtkType.h:338