VTK  9.1.0
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
35class VTKCOMMONDATAMODEL_EXPORT vtkClosestNPointsStrategy : public vtkClosestPointStrategy
36{
37public:
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
68protected:
71
73
74private:
76 void operator=(const vtkClosestNPointsStrategy&) = delete;
77};
78
79#endif
abstract class to specify cell behavior
Definition: vtkCell.h:147
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.
~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:113
int vtkIdType
Definition: vtkType.h:332