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=========================================================================*/
31
32#ifndef vtkClosestNPointsStrategy_h
33#define vtkClosestNPointsStrategy_h
34
36#include "vtkCommonDataModelModule.h" // For export macro
37
38class VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy : public vtkClosestPointStrategy
39{
40public:
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
79protected:
82
84
85private:
87 void operator=(const vtkClosestNPointsStrategy&) = delete;
88};
89
90#endif
abstract class to specify cell behavior
Definition vtkCell.h:61
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:40
int vtkIdType
Definition vtkType.h:332