Go to the documentation of this file.
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
110 vtkSetMacro(BuildHierarchy,
bool);
111 vtkGetMacro(BuildHierarchy,
bool);
112 vtkBooleanMacro(BuildHierarchy,
bool);
127 const unsigned char *
SelectLine(
double origin[3],
double ray[3],
129 const unsigned char *
SelectPlane(
double origin[3],
double normal[3],
158 vtkGetMacro(Resolution,
int);
170 vtkGetMacro(MaxLevel,
int);
179 vtkGetMacro(NumberOfLevels,
int);
216 double SphereBounds[6];
void BuildUnstructuredHierarchy(vtkDataSet *input, double *tree)
record modification and/or execution time
const unsigned char * SelectPoint(double point[3], vtkIdType &numSelected)
Methods for cell selection based on a geometric query.
void SelectLine(double origin[3], double ray[3], vtkIdList *cellIds)
void BuildTreeHierarchy(vtkDataSet *input)
topologically regular array of data
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
const double * GetCellSpheres()
Special methods to retrieve the sphere tree data.
void SelectPlane(double origin[3], double normal[3], vtkIdList *cellIds)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetDataSet(vtkDataSet *)
Specify the dataset from which to build the sphere tree.
static vtkSphereTree * New()
Instantiate the sphere tree.
a simple class to control print indentation
const unsigned char * SelectPlane(double origin[3], double normal[3], vtkIdType &numSelected)
list of point or cell ids
void ExtractCellIds(const unsigned char *selected, vtkIdList *cellIds, vtkIdType numSelected)
void BuildStructuredHierarchy(vtkStructuredGrid *input, double *tree)
abstract class to specify dataset behavior
#define VTK_MAX_SPHERE_TREE_LEVELS
class to build and traverse sphere trees
void Build(vtkDataSet *input)
void BuildTreeSpheres(vtkDataSet *input)
dynamic, self-adjusting array of double
void Build()
Build the sphere tree (if necessary) from the data set specified.
dataset represents arbitrary combinations of all possible cell types
vtkSphereTreeHierarchy * Hierarchy
#define VTK_MAX_SPHERE_TREE_RESOLUTION
~vtkSphereTree() override
const double * GetTreeSpheres(int level, vtkIdType &numSpheres)
const unsigned char * SelectLine(double origin[3], double ray[3], vtkIdType &numSelected)
void SelectPoint(double point[3], vtkIdList *cellIds)
Methods for cell selection based on a geometric query.