41 #ifndef vtkLinearTransformCellLocator_h
42 #define vtkLinearTransformCellLocator_h
45 #include "vtkFiltersFlowPathsModule.h"
80 vtkSetMacro(UseAllPoints,
bool);
81 vtkBooleanMacro(UseAllPoints,
bool);
82 vtkGetMacro(UseAllPoints,
bool);
89 vtkGetMacro(IsLinearTransformation,
bool);
103 int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
double x[3],
126 vtkIdType& cellId,
int& subId,
double& dist2)
override
128 this->Superclass::FindClosestPoint(x, closestPoint, cell, cellId, subId, dist2);
159 const double p1[3],
const double p2[3],
double tolerance,
vtkIdList* cellsIds)
override
161 this->Superclass::FindCellsAlongLine(p1, p2, tolerance, cellsIds);
171 const double o[3],
const double n[3],
double tolerance,
vtkIdList* cells)
override;
181 double pcoords[3],
double* weights)
override;
210 bool ComputeTransformation();
214 bool IsLinearTransformation =
false;
215 bool UseAllPoints =
false;
virtual void BuildLocator()=0
Build the locator from the input dataset.
virtual vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3], vtkIdType &cellId, int &subId, double &dist2)
Return the closest point within a specified radius and the cell which is closest to the point x...
virtual void FindCellsWithinBounds(double *bbox, vtkIdList *cells)
Return a list of unique cell ids inside of a given bounding box.
virtual bool InsideCellBounds(double x[3], vtkIdType cell_ID)
Quickly test if a point is inside the bounds of a particular cell.
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 FindClosestPoint(const double x[3], double closestPoint[3], vtkIdType &cellId, int &subId, double &dist2)
Return the closest point and the cell which is closest to the point x.
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.
virtual vtkIdType FindCell(double x[3])
Returns the Id of the cell containing the point, returns -1 if no cell found.
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void FindCellsAlongPlane(const double o[3], const double n[3], double tolerance, vtkIdList *cells)
Given an unbounded plane defined by an origin o[3] and unit normal n[3], return the list of unique ce...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
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).