41 #ifndef vtkPointLocator_h
42 #define vtkPointLocator_h
49 class vtkNeighborPoints;
64 vtkSetVector3Macro(Divisions,
int);
65 vtkGetVectorMacro(Divisions,
int,3);
70 vtkSetClampMacro(NumberOfPointsPerBucket,
int,1,
VTK_INT_MAX);
71 vtkGetMacro(NumberOfPointsPerBucket,
int);
86 double radius,
const double x[3],
double& dist2);
88 double inputDataLength,
double& dist2);
131 xyz[0] = x; xyz[1] = y; xyz[2] = z;
167 virtual void FindDistributedPoints(
int N,
const double x[3],
169 virtual void FindDistributedPoints(
int N,
double x,
double y,
186 virtual vtkIdList *GetPointsInBucket(
const double x[3],
int ijk[3]);
207 void GetBucketNeighbors(vtkNeighborPoints* buckets,
208 const int ijk[3],
const int ndivs[3],
int level);
209 void GetOverlappingBuckets(vtkNeighborPoints* buckets,
210 const double x[3],
const int ijk[3],
double dist,
212 void GetOverlappingBuckets(vtkNeighborPoints* buckets,
213 const double x[3],
double dist,
215 int prevMaxLevel[3]);
216 void GenerateFace(
int face,
int i,
int j,
int k,
218 double Distance2ToBucket(
const double x[3],
const int nei[3]);
219 double Distance2ToBounds(
const double x[3],
const double bounds[6]);
223 vtkIdType GetBucketIndex(
const double x[3]);
224 void GetBucketIndices(
const double x[3],
int ijk[3]);
int NumberOfPointsPerBucket
virtual void FreeSearchStructure()=0
virtual void Initialize()=0
virtual vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double &dist2)=0
quickly locate points in 3-space
virtual int InsertUniquePoint(const double x[3], vtkIdType &ptId)=0
vtkIdType InsertionPointId
virtual vtkIdType IsInsertedPoint(double x, double y, double z)=0
vtkIdType IsInsertedPoint(double x, double y, double z)
Abstract class in support of both point location and point insertion.
vtkIdType NumberOfBuckets
void PrintSelf(ostream &os, vtkIndent indent)
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual int InitPointInsertion(vtkPoints *newPts, const double bounds[6])=0
a simple class to control print indentation
list of point or cell ids
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
virtual vtkIdType InsertNextPoint(const double x[3])=0
virtual vtkIdType FindClosestInsertedPoint(const double x[3])=0
virtual vtkIdType FindClosestPoint(const double x[3])=0
virtual void BuildLocator()=0
virtual void InsertPoint(vtkIdType ptId, const double x[3])=0
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points