![]() |
CustusX
22.09
An IGT application
|
Representation of an integer bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk. More...
#include <cxBoundingBox3D.h>
Public Member Functions | |
IntBoundingBox3D () | |
IntBoundingBox3D (int x0, int x1, int y0, int y1, int z0=0, int z1=0) | |
IntBoundingBox3D (const Vector3D &a, const Vector3D &b) | |
IntBoundingBox3D (const Eigen::Vector3i &a, const Eigen::Vector3i &b) | |
IntBoundingBox3D (const double *data) | |
IntBoundingBox3D (const int *data) | |
Eigen::Vector3i | bottomLeft () const |
Eigen::Vector3i | topRight () const |
Eigen::Vector3i | center () const |
Eigen::Vector3i | range () const |
Eigen::Vector3i | corner (int x, int y, int z) const |
bool | contains (const Eigen::Vector3i &p) const |
Representation of an integer bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
Definition at line 38 of file cxBoundingBox3D.h.
cx::IntBoundingBox3D::IntBoundingBox3D | ( | ) |
Definition at line 26 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 29 of file cxBoundingBox3D.cpp.
Create a bounding box describing the volume spanned by the two points a and b.
Definition at line 40 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 57 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 74 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 80 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::bottomLeft | ( | ) | const |
Definition at line 85 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::center | ( | ) | const |
Definition at line 93 of file cxBoundingBox3D.cpp.
bool cx::IntBoundingBox3D::contains | ( | const Eigen::Vector3i & | p | ) | const |
return true if p is inside or on the edge of the bounding box
Definition at line 117 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::corner | ( | int | x, |
int | y, | ||
int | z | ||
) | const |
Return the coordinate value of a given corner. Insert 0 or 1 for each of the 3 axis in order to get start or stop corner along that axis.
Definition at line 105 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::range | ( | ) | const |
Definition at line 97 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::topRight | ( | ) | const |
Definition at line 89 of file cxBoundingBox3D.cpp.