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);
represent and manipulate 3D points
void FreeSearchStructure() override
Free the memory required for the spatial data structure.
static vtkStaticCellLocator * New()
Standard methods to instantiate, print and obtain type-related information.
int IntersectWithLine(const double a0[3], const double a1[3], double tol, double &t, double x[3], double pcoords[3], int &subId, vtkIdType &cellId, vtkGenericCell *cell) override
Return intersection point (if any) AND the cell which was intersected by the finite line.
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.
void FindCellsAlongLine(const double p1[3], const double p2[3], double tolerance, vtkIdList *cells) override
Given a finite line defined by the two points (p1,p2), return the list of unique cell ids in the buck...
vtkCellProcessor * Processor
bool GetLargeIds()
Inform the user as to whether large ids are being used.
unsigned char * CellHasBeenVisited
void BuildLocator() override
Build the locator from the input dataset.
void FindCellsWithinBounds(double *bbox, vtkIdList *cells) override
Return a list of unique cell ids inside of a given bounding box.
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
vtkIdType FindCell(double pos[3], double vtkNotUsed, vtkGenericCell *cell, double pcoords[3], double *weights) override
Test a point to find if it is inside a cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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
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
~vtkStaticCellLocator() override
void GenerateRepresentation(int level, vtkPolyData *pd) override
Satisfy vtkLocator abstract interface.
perform fast cell location operations
unsigned char QueryNumber