45 #ifndef vtkJumpAndWalkCellLocator_h
46 #define vtkJumpAndWalkCellLocator_h
50 #include "vtkCommonDataModelModule.h"
54 #include <unordered_set>
56 VTK_ABI_NAMESPACE_BEGIN
93 vtkSetClampMacro(NumberOfClosestPoints,
unsigned int, 1, 1000);
94 vtkGetMacro(NumberOfClosestPoints,
unsigned int);
108 double pcoords[3],
double* weights)
override;
164 int& subId,
double pcoords[3],
double* weights, std::unordered_set<vtkIdType>& visitedCellIds,
170 unsigned int NumberOfClosestPoints = 1;
174 struct ThreadLocalData;
177 VTK_ABI_NAMESPACE_END
179 #endif // vtkJumpAndWalkCellLocator_h
void ReportReferences(vtkGarbageCollector *) override
point locator adaptor to perform cell Location using the jump and walk approach
virtual void BuildLocator()=0
Build the locator from the input dataset.
virtual vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3], vtkIdType &cellId, int &subId, double &dist2)
Return the closest point within a specified radius and the cell which is closest to the point x...
an abstract base class for locators which find cells
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void FreeSearchStructure()=0
Free the memory required for the spatial data structure.
Detect and break reference loops.
provides thread-safe access to cells
virtual void ShallowCopy(vtkAbstractCellLocator *)
Shallow copy of a vtkAbstractCellLocator.
a simple class to control print indentation
virtual void BuildLocatorInternal()
This function is not pure virtual to maintain backwards compatibility.
abstract class to quickly locate points in 3-space
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
Method to build a representation at a particular level.
virtual void ForceBuildLocator()
Build the locator from the input dataset (even if UseExistingSearchStructure is on).
vtkIdType FindCell(double x[3])
Returns the Id of the cell containing the point, returns -1 if no cell found.