37 #ifndef vtkOctreePointLocatorNode_h
38 #define vtkOctreePointLocatorNode_h
40 #include "vtkCommonDataModelModule.h"
60 this->NumberOfPoints = numberOfPoints;
62 vtkGetMacro(NumberOfPoints,
int);
70 void SetBounds(
double xMin,
double xMax,
double yMin,
71 double yMax,
double zMin,
double zMax);
74 this->SetBounds(b[0], b[1], b[2], b[3], b[4], b[5]);
76 void GetBounds(
double *b)
const;
85 void SetDataBounds(
double xMin,
double xMax,
double yMin,
86 double yMax,
double zMin,
double zMax);
87 void GetDataBounds(
double *b)
const;
95 vtkGetMacro(MinBounds,
double*);
96 vtkGetMacro(MaxBounds,
double*);
105 this->MinBounds[0] = minBounds[0];
106 this->MinBounds[1] = minBounds[1];
107 this->MinBounds[2] = minBounds[2];
117 this->MaxBounds[0] = maxBounds[0];
118 this->MaxBounds[1] = maxBounds[1];
119 this->MaxBounds[2] = maxBounds[2];
128 vtkGetMacro(MinDataBounds,
double*);
129 vtkGetMacro(MaxDataBounds,
double*);
139 this->MinDataBounds[0] = minDataBounds[0];
140 this->MinDataBounds[1] = minDataBounds[1];
141 this->MinDataBounds[2] = minDataBounds[2];
152 this->MaxDataBounds[0] = maxDataBounds[0];
153 this->MaxDataBounds[1] = maxDataBounds[1];
154 this->MaxDataBounds[2] = maxDataBounds[2];
163 vtkGetMacro(ID,
int);
173 vtkGetMacro(MinID,
int);
179 void CreateChildNodes();
184 void DeleteChildNodes();
206 vtkTypeBool ContainsPoint(
double x,
double y,
double z,
int useDataBounds);
213 double GetDistance2ToBoundary(
double x,
double y,
double z,
221 double GetDistance2ToBoundary(
double x,
double y,
double z,
231 double GetDistance2ToInnerBoundary(
double x,
double y,
double z,
242 int GetSubOctantIndex(
double*
point,
int CheckContainment);
250 int& NextLeafId,
int & NextMinId,
259 double _GetDistance2ToBoundary(
260 double x,
double y,
double z,
double *boundaryPt,
278 double MinDataBounds[3];
284 double MaxDataBounds[3];