37 #ifndef vtkOctreePointLocatorNode_h 38 #define vtkOctreePointLocatorNode_h 40 #include "vtkCommonDataModelModule.h" 59 vtkGetMacro(NumberOfPoints,
int);
67 void SetBounds(
double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax);
69 void GetBounds(
double* b)
const;
78 void SetDataBounds(
double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax);
79 void GetDataBounds(
double* b)
const;
87 vtkGetMacro(MinBounds,
double*);
88 vtkGetMacro(MaxBounds,
double*);
97 this->MinBounds[0] = minBounds[0];
98 this->MinBounds[1] = minBounds[1];
99 this->MinBounds[2] = minBounds[2];
109 this->MaxBounds[0] = maxBounds[0];
110 this->MaxBounds[1] = maxBounds[1];
111 this->MaxBounds[2] = maxBounds[2];
120 vtkGetMacro(MinDataBounds,
double*);
121 vtkGetMacro(MaxDataBounds,
double*);
131 this->MinDataBounds[0] = minDataBounds[0];
132 this->MinDataBounds[1] = minDataBounds[1];
133 this->MinDataBounds[2] = minDataBounds[2];
144 this->MaxDataBounds[0] = maxDataBounds[0];
145 this->MaxDataBounds[1] = maxDataBounds[1];
146 this->MaxDataBounds[2] = maxDataBounds[2];
155 vtkGetMacro(ID,
int);
165 vtkGetMacro(MinID,
int);
171 void CreateChildNodes();
176 void DeleteChildNodes();
198 vtkTypeBool ContainsPoint(
double x,
double y,
double z,
int useDataBounds);
205 double GetDistance2ToBoundary(
213 double GetDistance2ToBoundary(
double x,
double y,
double z,
double* boundaryPt,
232 int GetSubOctantIndex(
double*
point,
int CheckContainment);
239 void ComputeOctreeNodeInformation(
247 double _GetDistance2ToBoundary(
double x,
double y,
double z,
double* boundaryPt,
264 double MinDataBounds[3];
270 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.