34 #ifndef vtkBSPIntersections_h 35 #define vtkBSPIntersections_h 37 #include "vtkCommonDataModelModule.h" 65 int GetBounds(
double* bounds);
71 int GetNumberOfRegions();
78 int GetRegionBounds(
int regionID,
double bounds[6]);
86 int GetRegionDataBounds(
int regionID,
double bounds[6]);
93 int IntersectsBox(
int regionId,
double* x);
95 int regionId,
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
104 int IntersectsBox(
int* ids,
int len,
double* x);
106 int* ids,
int len,
double x0,
double x1,
double y0,
double y1,
double z0,
double z1);
114 int IntersectsSphere2(
int regionId,
double x,
double y,
double z,
double rSquared);
122 int IntersectsSphere2(
int* ids,
int len,
double x,
double y,
double z,
double rSquared);
130 int IntersectsCell(
int regionId,
vtkCell* cell,
int cellRegion = -1);
139 int IntersectsCell(
int* ids,
int len,
vtkCell* cell,
int cellRegion = -1);
150 vtkGetMacro(ComputeIntersectionsUsingDataBounds,
int);
151 void SetComputeIntersectionsUsingDataBounds(
int c);
152 void ComputeIntersectionsUsingDataBoundsOn();
153 void ComputeIntersectionsUsingDataBoundsOff();
161 int BuildRegionList();
165 double CellBoundsCache[6];
175 static int NumberOfLeafNodes(
vtkKdNode* kd);
176 static void SetIDRanges(
vtkKdNode* kd,
int& min,
int&
max);
180 static void SetCellBounds(
vtkCell* cell,
double* bounds);
182 int _IntersectsBox(
vtkKdNode* node,
int* ids,
int len,
double x0,
double x1,
double y0,
double y1,
183 double z0,
double z1);
185 int _IntersectsSphere2(
186 vtkKdNode* node,
int* ids,
int len,
double x,
double y,
double z,
double rSquared);
188 int _IntersectsCell(
vtkKdNode* node,
int* ids,
int len,
vtkCell* cell,
int cellRegion = -1);
197 int ComputeIntersectionsUsingDataBounds;
This class represents a single spatial region in an 3D axis aligned binary spatial partitioning...
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.
Perform calculations (mostly intersection calculations) on regions of a 3D binary spatial partitionin...
vtkTypeUInt32 vtkMTimeType
This class represents an axis-aligned Binary Spatial Partitioning of a 3D space.
record modification and/or execution time
abstract class to specify cell behavior
a simple class to control print indentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkKdNode ** GetRegionList()