39 #ifndef vtkOctreePointLocator_h
40 #define vtkOctreePointLocator_h
61 vtkSetMacro(MaximumPointsPerRegion,
int);
62 vtkGetMacro(MaximumPointsPerRegion,
int);
67 vtkSetMacro(CreateCubicOctants,
int);
68 vtkGetMacro(CreateCubicOctants,
int);
76 vtkGetMacro(FudgeFactor,
double);
77 vtkSetMacro(FudgeFactor,
double);
89 vtkGetMacro(NumberOfLeafNodes,
int);
93 void GetRegionBounds(
int regionID,
double bounds[6]);
96 void GetRegionDataBounds(
int leafNodeID,
double bounds[6]);
99 int GetRegionContainingPoint(
double x,
double y,
double z);
118 double radius,
const double x[3],
double& dist2);
125 vtkIdType FindClosestPointInRegion(
int regionId,
double *x,
double &dist2);
126 vtkIdType FindClosestPointInRegion(
int regionId,
double x,
double y,
127 double z,
double &dist2);
159 void FindPointsInArea(
double* area,
vtkIdTypeArray* ids,
bool clearArray =
true);
211 int _FindClosestPointInRegion(
int leafNodeId,
double x,
double y,
212 double z,
double &dist2);
221 int FindClosestPointInSphere(
double x,
double y,
double z,
double radius,
222 int skipRegion,
double &dist2);
virtual void FreeSearchStructure()=0
an octree spatial decomposition of a set of points
int NumberOfLocatorPoints
virtual vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double &dist2)=0
virtual double * GetBounds()
int MaximumPointsPerRegion
dynamic, self-adjusting array of vtkIdType
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkOctreePointLocatorNode ** LeafNodeList
a simple class to control print indentation
abstract class to quickly locate points in 3-space
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent)
virtual void FindPointsWithinRadius(double R, const double x[3], vtkIdList *result)=0
virtual void FindClosestNPoints(int N, const double x[3], vtkIdList *result)=0
object to represent cell connectivity
Octree node that has 8 children each of equal size.
vtkOctreePointLocatorNode * Top
virtual vtkIdType FindClosestPoint(const double x[3])=0
virtual void BuildLocator()=0
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points