Go to the documentation of this file.
39 #include "vtkCommonDataModelModule.h"
69 int ncuts,
int *dim,
double *coord,
70 int *lower,
int *upper,
71 double *lowerDataCoord,
double *upperDataCoord,
92 vtkGetMacro(NumberOfCuts,
int);
98 int GetArrays(
int len,
int *dim,
double *coord,
int *lower,
int *upper,
99 double *lowerDataCoord,
double *upperDataCoord,
int *npoints);
This class represents a single spatial region in an 3D axis aligned binary spatial partitioning.
int GetArrays(int len, int *dim, double *coord, int *lower, int *upper, double *lowerDataCoord, double *upperDataCoord, int *npoints)
Get the arrays representing the cuts in the partitioning.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int WriteArray(vtkKdNode *kd, int loc)
static void DeleteAllDescendants(vtkKdNode *kd)
void CreateCuts(vtkKdNode *kd)
Initialize the cuts from a tree of vtkKdNode's.
int Equals(vtkBSPCuts *other, double tolerance=0.0)
Compare these cuts with those of the other tree.
void ShallowCopy(vtkDataObject *src) override
Shallow copy.
void operator=(const vtkBSPCuts &)=delete
vtkKdNode * GetKdNodeTree()
Return a tree of vtkKdNode's representing the cuts specified in this object.
void AllocateArrays(int size)
static vtkBSPCuts * GetData(vtkInformationVector *v, int i=0)
static vtkBSPCuts * New()
static void _PrintTree(vtkKdNode *kd, int depth)
static void SetMinMaxId(vtkKdNode *kd)
a simple class to control print indentation
void CreateCuts(double *bounds, int ncuts, int *dim, double *coord, int *lower, int *upper, double *lowerDataCoord, double *upperDataCoord, int *npoints)
Initialize the cuts with arrays of information.
This class represents an axis-aligned Binary Spatial Partitioning of a 3D space.
void Initialize() override
Restore data object to initial state,.
vtkBSPCuts(const vtkBSPCuts &)=delete
static int CountNodes(vtkKdNode *kd)
static vtkBSPCuts * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void DeepCopy(vtkDataObject *src) override
general representation of visualization data
void BuildTree(vtkKdNode *kd, int idx)