128 #ifndef vtkModifiedBSPTree_h
129 #define vtkModifiedBSPTree_h
132 #include "vtkFiltersFlowPathsModule.h"
137 VTK_ABI_NAMESPACE_BEGIN
138 class Sorted_cell_extents_Lists;
171 int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
double x[3],
194 double pcoords[3],
double* weights)
override;
206 virtual void GenerateRepresentationLeafs(
vtkPolyData* pd);
234 std::shared_ptr<std::vector<vtkIdType>>
Leaves;
241 void Subdivide(BSPNode* node, Sorted_cell_extents_Lists* lists,
vtkDataSet* dataSet,
243 std::vector<uint8_t>& cellPart);
254 #ifndef DOXYGEN_SHOULD_SKIP_THIS
262 mChild[0] = mChild[1] = mChild[2] =
nullptr;
263 for (
int i = 0; i < 3; i++)
272 for (
int i = 0; i < 3; i++)
278 void setMin(
double minx,
double miny,
double minz)
280 this->Bounds[0] = minx;
281 this->Bounds[2] = miny;
282 this->Bounds[4] = minz;
285 void setMax(
double maxx,
double maxy,
double maxz)
287 this->Bounds[1] = maxx;
288 this->Bounds[3] = maxy;
289 this->Bounds[5] = maxz;
292 bool Inside(
double point[3])
const;
314 void Classify(
const double origin[3],
const double dir[3],
double& rDist, BSPNode*& Near,
315 BSPNode*& Mid, BSPNode*& Far)
const;
319 static int VTKFILTERSFLOWPATHS_EXPORT getDominantAxis(
const double dir[3]);
324 VTK_ABI_NAMESPACE_END
virtual void BuildLocator()=0
Build the locator from the input dataset.
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
Free the memory required for the spatial data structure.
provides thread-safe access to cells
virtual void ShallowCopy(vtkAbstractCellLocator *)
Shallow copy of a vtkAbstractCellLocator.
virtual int IntersectWithLine(const double p1[3], const double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
Return intersection point (if any) of finite line with cells contained in cell locator.
a simple class to control print indentation
virtual void BuildLocatorInternal()
This function is not pure virtual to maintain backwards compatibility.
list of point or cell ids
maintain an ordered list of IdList objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::shared_ptr< std::vector< vtkIdType > > Leaves
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
std::shared_ptr< BSPNode > mRoot
void FindCellsAlongLine(const double p1[3], const double p2[3], double tol, vtkIdList *cells)
Take the passed line segment and intersect it with the data set.
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
Method to build a representation at a particular level.
represent and manipulate 3D points
virtual void ForceBuildLocator()
Build the locator from the input dataset (even if UseExistingSearchStructure is on).
Generate axis aligned BBox tree for ray-casting and other Locator based searches. ...
vtkIdType FindCell(double x[3])
Returns the Id of the cell containing the point, returns -1 if no cell found.