52 #ifndef __vtkLocator_h
53 #define __vtkLocator_h
55 #include "vtkCommonDataModelModule.h"
56 #include "vtkObject.h"
61 class VTKCOMMONDATAMODEL_EXPORT
vtkLocator :
public vtkObject
65 void PrintSelf(ostream& os, vtkIndent indent);
69 virtual void SetDataSet(vtkDataSet*);
70 vtkGetObjectMacro(DataSet,vtkDataSet);
77 vtkSetClampMacro(MaxLevel,
int,0,VTK_INT_MAX);
78 vtkGetMacro(MaxLevel,
int);
85 vtkGetMacro(Level,
int);
93 vtkSetMacro(Automatic,
int);
94 vtkGetMacro(Automatic,
int);
95 vtkBooleanMacro(Automatic,
int);
101 vtkSetClampMacro(Tolerance,
double,0.0,VTK_DOUBLE_MAX);
102 vtkGetMacro(Tolerance,
double);
107 virtual void Update();
110 virtual void Initialize();
113 virtual void BuildLocator() = 0;
116 virtual void FreeSearchStructure() = 0;
122 virtual void GenerateRepresentation(
int level,
vtkPolyData *pd) = 0;
126 vtkGetMacro(BuildTime,
unsigned long);
131 virtual void Register(vtkObjectBase *o);
132 virtual void UnRegister(vtkObjectBase *o);
146 virtual void ReportReferences(vtkGarbageCollector*);
abstract base class for objects that accelerate spatial searches
concrete dataset represents vertices, lines, polygons, and triangle strips