Fraxinus
16.5.0-fx-rc5
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 59 of file cxBoundingBox3D.h.
cx::IntBoundingBox3D::IntBoundingBox3D | ( | ) |
Definition at line 47 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 50 of file cxBoundingBox3D.cpp.
Create a bounding box describing the volume spanned by the two points a and b.
Definition at line 61 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 78 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 95 of file cxBoundingBox3D.cpp.
|
explicit |
Definition at line 101 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::bottomLeft | ( | ) | const |
Definition at line 106 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::center | ( | ) | const |
Definition at line 114 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 138 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 126 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::range | ( | ) | const |
Definition at line 118 of file cxBoundingBox3D.cpp.
Eigen::Vector3i cx::IntBoundingBox3D::topRight | ( | ) | const |
Definition at line 110 of file cxBoundingBox3D.cpp.