145 #ifndef _vtkModifiedBSPTree_h 146 #define _vtkModifiedBSPTree_h 153 class Sorted_cell_extents_Lists;
186 virtual void GenerateRepresentationLeafs(
vtkPolyData *pd);
192 double p1[3],
double p2[3],
double tol,
double &t,
double x[3],
193 double pcoords[3],
int &subId,
vtkIdType &cellId);
201 double p1[3],
double p2[3],
double tol,
double &t,
double x[3],
213 const double p1[3],
const double p2[3],
const double tol,
221 double pcoords[3],
double *weights);
243 void Subdivide(
BSPNode *node, Sorted_cell_extents_Lists *lists,
vtkDataSet *dataSet,
250 virtual int IntersectCellInternal(
vtkIdType cell_ID,
const double p1[3],
const double p2[3],
251 const double tol,
double &t,
double ipt[3],
double pcoords[3],
int &subId);
254 void BuildLocatorIfNeeded();
255 void ForceBuildLocator();
256 void BuildLocatorInternal();
268 #ifndef DOXYGEN_SHOULD_SKIP_THIS 274 mChild[0] = mChild[1] = mChild[2] = NULL;
275 for (
int i=0; i<6; i++) sorted_cell_lists[i] = NULL;
280 for (
int i=0; i<3; i++)
delete mChild[i];
281 for (
int i=0; i<6; i++)
delete []sorted_cell_lists[i];
284 void setMin(
double minx,
double miny,
double minz) {
285 this->Bounds[0] = minx; this->Bounds[2] = miny; this->Bounds[4] = minz;
288 void setMax(
double maxx,
double maxy,
double maxz) {
289 this->Bounds[1] = maxx; this->Bounds[3] = maxy; this->Bounds[5] = maxz;
292 bool Inside(
double point[3])
const;
307 void Classify(
const double origin[3],
const double dir[3],
310 bool RayMinMaxT(
const double origin[3],
const double dir[3],
311 double &rTmin,
double &rTmax)
const;
314 friend class vtkParticleBoxTree;
317 const double bounds[6],
const double origin[3],
const double dir[3],
double &rTmin,
double &rTmax);
#define VTKFILTERSFLOWPATHS_EXPORT
virtual void BuildLocator()=0
virtual bool InsideCellBounds(double x[3], vtkIdType cell_ID)
abstract class to specify dataset behavior
an abstract base class for locators which find cells
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void FreeSearchStructure()=0
#define vtkTypeMacro(thisClass, superclass)
provides thread-safe access to cells
void PrintSelf(ostream &os, vtkIndent indent)
void setMax(double maxx, double maxy, double maxz)
a simple class to control print indentation
virtual vtkIdType FindCell(double x[3])
list of point or cell ids
void setMin(double minx, double miny, double minz)
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
maintain an unordered list of dataarray objects
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
represent and manipulate 3D points
Generate axis aligned BBox tree for raycasting and other Locator based searches.