Go to the documentation of this file.
40 #ifndef vtkOctreePointLocator_h
41 #define vtkOctreePointLocator_h
43 #include "vtkCommonDataModelModule.h"
65 vtkGetMacro(MaximumPointsPerRegion,
int);
73 vtkGetMacro(CreateCubicOctants,
int);
83 vtkGetMacro(FudgeFactor,
double);
93 void GetBounds(
double *bounds) VTK_OVERRIDE;
100 vtkGetMacro(NumberOfLeafNodes,
int);
106 void GetRegionBounds(
int regionID,
double bounds[6]);
111 void GetRegionDataBounds(
int leafNodeID,
double bounds[6]);
116 int GetRegionContainingPoint(
double x,
double y,
double z);
123 void BuildLocator() VTK_OVERRIDE;
130 vtkIdType FindClosestPoint(const
double x[3]) VTK_OVERRIDE;
131 vtkIdType FindClosestPoint(
double x,
double y,
double z,
double &dist2);
140 double radius, const
double x[3],
double& dist2) VTK_OVERRIDE;
148 vtkIdType FindClosestPointInRegion(
int regionId,
double *x,
double &dist2);
149 vtkIdType FindClosestPointInRegion(
int regionId,
double x,
double y,
150 double z,
double &dist2);
157 void FindPointsWithinRadius(
168 void FindClosestNPoints(
int N, const
double x[3],
179 void FreeSearchStructure() VTK_OVERRIDE;
193 void FindPointsInArea(
double* area,
vtkIdTypeArray* ids,
bool clearArray = true);
245 int _FindClosestPointInRegion(
int leafNodeId,
double x,
double y,
246 double z,
double &dist2);
255 int FindClosestPointInSphere(
double x,
double y,
double z,
double radius,
256 int skipRegion,
double &dist2);
262 int MaximumPointsPerRegion;
263 int NumberOfLeafNodes;
267 int NumberOfLocatorPoints;
268 float *LocatorPoints;
280 int CreateCubicOctants;
represent and manipulate 3D points
an octree spatial decomposition of a set of points
Octree node that has 8 children each of equal size.
static vtkOctreePointLocator * New()
a simple class to control print indentation
object to represent cell connectivity
list of point or cell ids
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
dynamic, self-adjusting array of vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract class to quickly locate points in 3-space
double * GetBounds() override
Get the spatial bounds of the entire octree space.