50 #ifndef vtkSphereTree_h
51 #define vtkSphereTree_h
53 #include "vtkCommonExecutionModelModule.h"
64 struct vtkSphereTreeHierarchy;
66 #define VTK_MAX_SPHERE_TREE_RESOLUTION 10
67 #define VTK_MAX_SPHERE_TREE_LEVELS 20
111 vtkGetMacro(BuildHierarchy,
int);
125 const unsigned char *SelectPoint(
double point[3],
127 const unsigned char *SelectLine(
double origin[3],
double ray[3],
129 const unsigned char *SelectPlane(
double origin[3],
double normal[3],
145 void SelectLine(
double origin[3],
double ray[3],
vtkIdList *cellIds);
146 void SelectPlane(
double origin[3],
double normal[3],
vtkIdList *cellIds);
158 vtkGetMacro(Resolution,
int);
170 vtkGetMacro(MaxLevel,
int);
179 vtkGetMacro(NumberOfLevels,
int);
193 const double *GetCellSpheres();
203 unsigned char *Selected;
212 vtkSphereTreeHierarchy *Hierarchy;
215 double AverageRadius;
216 double SphereBounds[6];
221 void ExtractCellIds(const
unsigned char *selected,
vtkIdList *cellIds,
226 void BuildUnstructuredHierarchy(
vtkDataSet *input,
double *tree);
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class to specify dataset behavior
record modification and/or execution time
dynamic, self-adjusting array of double
a simple class to control print indentation
list of point or cell ids
dataset represents arbitrary combinations of all possible cell types
abstract superclass for arrays of numeric data
#define VTK_MAX_SPHERE_TREE_LEVELS
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
topologically regular array of data
class to build and traverse sphere trees
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
#define VTK_MAX_SPHERE_TREE_RESOLUTION