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];
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetMaxBounds(double maxBounds[3])
Set the xmax, ymax and zmax value of the bounds of this region.
void SetNumberOfPoints(int numberOfPoints)
Set/Get the number of points contained in this region.
A vtkPlanesIntersection object is a vtkPlanes object that can compute whether the arbitrary convex re...
void SetMaxDataBounds(double maxDataBounds[3])
Set the xmax, ymax and zmax value of the bounds of this data within this region.
abstract class to specify cell behavior
void SetMinBounds(double minBounds[3])
Set the xmin, ymin and zmin value of the bounds of this region.
a simple class to control print indentation
void SetBounds(const double b[6])
Set/Get the bounds of the spatial region represented by this node.
Octree node that has 8 children each of equal size.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetMinDataBounds(double minDataBounds[3])
Set the xmin, ymin and zmin value of the bounds of this data within this region.