25 #include "vtkCommonDataModelModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
56 void SetXMin(
double p[3]);
57 void SetXMin(
double x,
double y,
double z);
58 void GetXMin(
double p[3]);
59 void GetXMin(
double& x,
double& y,
double& z);
62 void SetXMax(
double p[3]);
63 void SetXMax(
double x,
double y,
double z);
64 void GetXMax(
double p[3]);
65 void GetXMax(
double& x,
double& y,
double& z);
67 void SetBounds(
double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax);
68 void SetBounds(
const double bounds[6]);
70 double& xMin,
double& xMax,
double& yMin,
double& yMax,
double& zMin,
double& zMax);
80 void AddBounds(const
double bounds[6]);
91 static
char IntersectBox(const
double bounds[6], const
double origin[3], const
double dir[3],
92 double coord[3],
double& t,
double tolerance = 0.0);
106 static
int IntersectWithLine(const
double bounds[6], const
double p1[3], const
double p2[3],
107 double& t1,
double& t2,
double x1[3],
double x2[3],
int& plane1,
int& plane2);
118 static
bool IntersectWithInfiniteLine(const
double bounds[6], const
double p1[3],
119 const
double p2[3],
double& t1,
double& t2,
double x1[3],
double x2[3],
int& plane1,
129 static
vtkTypeBool IntersectWithPlane(
double bounds[6],
double origin[3],
double normal[3]);
143 double bounds[6],
double origin[3],
double normal[3],
double xout[18]);
152 static
vtkTypeBool IsBoxInFrustum(
double planes[24],
double bounds[6]);
162 vtkBox(const vtkBox&) = delete;
163 void operator=(const vtkBox&) = delete;
166 inline
void vtkBox::SetXMin(
double p[3])
168 this->SetXMin(p[0], p[1], p[2]);
173 this->SetXMax(p[0], p[1], p[2]);
176 VTK_ABI_NAMESPACE_END
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
void GetBounds(T a, double bds[6])
void SetXMax(double p[3])
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
a simple class to control print indentation
#define VTK_SIZEHINT(...)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
implicit function for a bounding box
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Fast, simple class for representing and operating on 3D bounds.