20#ifndef vtkClosestPointStrategy_h
21#define vtkClosestPointStrategy_h
24#include "vtkCommonDataModelModule.h"
31VTK_ABI_NAMESPACE_BEGIN
64 double tol2,
int& subId,
double pcoords[3],
double* weights)
override;
129 self->
GetCell(cellId, gencell);
abstract class to quickly locate points in 3-space
abstract class to specify cell behavior
implement a specific vtkPointSet::FindCell() strategy based on closest point
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.
vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3], vtkGenericCell *cell, vtkIdType &cellId, int &subId, double &dist2, int &inside) override
Implement the specific strategy.
vtkNew< vtkIdList > VisitedCellIds
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
static vtkClosestPointStrategy * New()
Construct a vtkFindCellStrategy subclass.
vtkNew< vtkIdList > NearPointIds
int Initialize(vtkPointSet *ps) override
Provide the necessary initialization method (see superclass for more information).
vtkNew< vtkIdList > Neighbors
void CopyParameters(vtkFindCellStrategy *from) override
Copy essential parameters between instances of this class.
vtkNew< vtkIdList > CellIds
vtkClosestPointStrategy()
vtkNew< vtkIdList > PointIds
vtkCell * SelectCell(vtkPointSet *self, vtkIdType cellId, vtkCell *cell, vtkGenericCell *gencell)
Subclasses use this method to select the current cell.
std::vector< double > Weights
~vtkClosestPointStrategy() override
virtual void SetPointLocator(vtkAbstractPointLocator *)
Set / get an instance of vtkAbstractPointLocator which is used to implement the strategy for FindCell...
vtkAbstractPointLocator * PointLocator
std::vector< unsigned char > VisitedCells
bool InsideCellBounds(double x[3], vtkIdType cellId) override
Implement the specific strategy.
helper class to manage the vtkPointSet::FindCell() method
provides thread-safe access to cells
list of point or cell ids
a simple class to control print indentation
Allocate and hold a VTK object.
concrete class for storing a set of points
vtkCell * GetCell(vtkIdType) override
This method always return a vtkEmptyCell, as there is no cell in a vtkPointSet.