Go to the documentation of this file.
39 #include "vtkCommonDataModelModule.h"
58 vtkSetMacro(Dim,
int);
59 vtkGetMacro(Dim,
int);
73 vtkSetMacro(NumberOfPoints,
int);
74 vtkGetMacro(NumberOfPoints,
int);
82 void SetBounds(
double x1,
double x2,
double y1,
double y2,
double z1,
double z2);
85 this->SetBounds(b[0], b[1], b[2], b[3], b[4], b[5]);
96 void SetDataBounds(
double x1,
double x2,
double y1,
double y2,
double z1,
double z2);
147 vtkSetMacro(ID,
int);
148 vtkGetMacro(ID,
int);
159 vtkGetMacro(MinID,
int);
160 vtkGetMacro(MaxID,
int);
161 vtkSetMacro(MinID,
int);
162 vtkSetMacro(MaxID,
int);
204 int IntersectsBox(
double x1,
double x2,
double y1,
double y2,
double z1,
double z2,
235 int cellRegion=-1,
double *cellBounds=
nullptr);
242 int ContainsBox(
double x1,
double x2,
double y1,
double y2,
double z1,
double z2,
290 double _GetDistance2ToBoundary(
291 double x,
double y,
double z,
double *boundaryPt,
292 int innerBoundaryOnly,
int useDataBounds);
313 void operator=(
const vtkKdNode&) =
delete;
void SetMaxBounds(const double *mb)
Set the xmax, ymax and zmax value of the bounds of this region.
This class represents a single spatial region in an 3D axis aligned binary spatial partitioning.
double GetDistance2ToInnerBoundary(double x, double y, double z)
Calculate the distance from the specified point (which is required to be inside this spatial region) ...
void SetUp(vtkKdNode *up)
double * GetMaxDataBounds()
void SetLeft(vtkKdNode *left)
vtkTypeBool ContainsPoint(double x, double y, double z, int useDataBounds)
Return 1 if this spatial region entirely contains the given point.
int IntersectsCell(vtkCell *cell, int useDataBounds, int cellRegion=-1, double *cellBounds=nullptr)
Return 1 if the cell specified intersects this region.
void SetMaxDataBounds(const double *mb)
Set the xmax, ymax and zmax value of the bounds of this data within this region.
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.
void GetDataBounds(double *b) const
void SetMinBounds(const double *mb)
Set the xmin, ymin and zmin value of the bounds of this region.
double * GetMinBounds()
Get a pointer to the 3 bound minima (xmin, ymin and zmin) or the 3 bound maxima (xmax,...
double GetDistance2ToBoundary(double x, double y, double z, int useDataBounds)
Calculate the distance squared from any point to the boundary of this region.
A vtkPlanesIntersection object is a vtkPlanes object that can compute whether the arbitrary convex re...
void SetDataBounds(float *v)
Given a pointer to NumberOfPoints points, set the DataBounds of this node to the bounds of these poin...
void SetDataBounds(double x1, double x2, double y1, double y2, double z1, double z2)
Set/Get the bounds of the points contained in this spatial region.
void PrintVerboseNode(int depth)
int IntersectsSphere2(double x, double y, double z, double rSquared, int useDataBounds)
Return 1 if this spatial region intersects a sphere described by it's center and the square of it's r...
double * GetMinDataBounds()
Get a pointer to the 3 data bound minima (xmin, ymin and zmin) or the 3 data bound maxima (xmax,...
void SetBounds(const double b[6])
#define VTK_SIZEHINT(...)
int IntersectsBox(double x1, double x2, double y1, double y2, double z1, double z2, int useDataBounds)
Return 1 if this spatial region intersects the axis-aligned box given by the bounds passed in.
virtual double GetDivisionPosition()
Get the location of the division plane along the axis the region is divided.
void PrintNode(int depth)
For debugging purposes, print out this node.
abstract class to specify cell behavior
void DeleteChildNodes()
Delete the left and right children.
void SetRight(vtkKdNode *right)
a simple class to control print indentation
void SetBounds(double x1, double x2, double y1, double y2, double z1, double z2)
Set/Get the bounds of the spatial region represented by this node.
void GetBounds(double *b) const
double GetDistance2ToBoundary(double x, double y, double z, double *boundaryPt, int useDataBounds)
Calculate the distance squared from any point to the boundary of this region.
void SetMinDataBounds(const double *mb)
Set the xmin, ymin and zmin value of the bounds of this data within this region.
void AddChildNodes(vtkKdNode *left, vtkKdNode *right)
Add the left and right children.
int ContainsBox(double x1, double x2, double y1, double y2, double z1, double z2, int useDataBounds)
Return 1 if this spatial region entirely contains a box specified by it's bounds.
int IntersectsRegion(vtkPlanesIntersection *pi, int useDataBounds)
A vtkPlanesIntersection object represents a convex 3D region bounded by planes, and it is capable of ...