Go to the documentation of this file.
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);
represent and manipulate 3D points
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.
virtual vtkIdType FindCell(double x[3])
Returns the Id of the cell containing the point, returns -1 if no cell found.
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.
vtkCellProcessor * Processor
virtual void FindCellsWithinBounds(double *bbox, vtkIdList *cells)
Return a list of unique cell ids inside of a given bounding box.
bool GetLargeIds()
Inform the user as to whether large ids are being used.
unsigned char * CellHasBeenVisited
virtual void GenerateRepresentation(int level, vtkPolyData *pd)=0
Method to build a representation at a particular level.
a simple class to control print indentation
vtkIdType FindCell(double x[3]) override
Reimplemented from vtkAbstractCellLocator to support bad compilers.
list of point or cell ids
virtual void BuildLocator()=0
Build the locator from the input dataset.
an abstract base class for locators which find 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.
vtkIdType MaxNumberOfBuckets
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.
int IntersectWithLine(const double p1[3], const double p2[3], vtkPoints *points, vtkIdList *cellIds) override
Reimplemented from vtkAbstractCellLocator to support bad compilers.
concrete dataset represents vertices, lines, polygons, and triangle strips
provides thread-safe access to cells
virtual void FreeSearchStructure()=0
Free the memory required for the spatial data structure.
perform fast cell location operations
unsigned char QueryNumber