32#ifndef vtkClosestPointStrategy_h
33#define vtkClosestPointStrategy_h
36#include "vtkCommonDataModelModule.h"
75 double tol2,
int& subId,
double pcoords[3],
double* weights)
override;
119 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.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
static vtkClosestPointStrategy * New()
Construct a vtkFindCellStrategy subclass.
std::set< vtkIdType > VisitedCells
int Initialize(vtkPointSet *ps) override
Provide the necessary initialization method (see superclass for more information).
vtkClosestPointStrategy()
vtkCell * SelectCell(vtkPointSet *self, vtkIdType cellId, vtkCell *cell, vtkGenericCell *gencell)
Subclasses use this method to select the current cell.
~vtkClosestPointStrategy() override
virtual void SetPointLocator(vtkAbstractPointLocator *)
Set / get an instance of vtkAbstractPointLocator which is used to implement the strategy for FindCell...
vtkAbstractPointLocator * PointLocator
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
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.