41 #ifndef vtkStaticCellLocator_h 42 #define vtkStaticCellLocator_h 44 #include "vtkCommonDataModelModule.h" 50 struct vtkCellProcessor;
54 friend struct vtkCellBinner;
55 friend struct vtkCellProcessor;
73 vtkSetVector3Macro(Divisions,
int);
74 vtkGetVectorMacro(Divisions,
int,3);
82 double pcoords[3],
double* weights )
override;
88 {
return this->Superclass::FindCell(x); }
105 double tolerance,
vtkIdList *cells)
override;
112 double& t,
double x[3],
double pcoords[3],
120 double& t,
double x[3],
double pcoords[3],
int &subId)
override 122 return this->Superclass::IntersectWithLine(p1, p2, tol, t, x, pcoords, subId);
129 double &t,
double x[3],
double pcoords[3],
132 return this->Superclass::IntersectWithLine(p1, p2, tol, t, x, pcoords, subId, cellId);
141 return this->Superclass::IntersectWithLine(p1, p2, points, cellIds);
169 vtkGetMacro(MaxNumberOfBuckets,
vtkIdType);
virtual void BuildLocator()=0
Build the locator from the input dataset.
virtual void FindCellsWithinBounds(double *bbox, vtkIdList *cells)
Return a list of unique cell ids inside of a given bounding box.
vtkIdType FindCell(double x[3]) override
Reimplemented from vtkAbstractCellLocator to support bad compilers.
an abstract base class for locators which find cells
int IntersectWithLine(const double p1[3], const double p2[3], vtkPoints *points, vtkIdList *cellIds) override
Reimplemented from vtkAbstractCellLocator to support bad compilers.
perform fast cell location operations
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void FreeSearchStructure()=0
Free the memory required for the spatial data structure.
unsigned char * CellHasBeenVisited
provides thread-safe access to cells
int IntersectWithLine(const double p1[3], const double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId, vtkIdType &cellId) override
Reimplemented from vtkAbstractCellLocator to support bad compilers.
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 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
unsigned char QueryNumber
vtkCellProcessor * Processor
bool GetLargeIds()
Inform the user as to whether large ids are being used.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void FindCellsAlongLine(const double p1[3], const double p2[3], double tolerance, vtkIdList *cells)
Given a finite line defined by the two points (p1,p2), return the list of unique cell ids in the buck...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
int IntersectWithLine(const double p1[3], const double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId) override
Reimplemented from vtkAbstractCellLocator to support bad compilers.
vtkIdType MaxNumberOfBuckets
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
Method to build a representation at a particular level.
represent and manipulate 3D points