|
| BBox () |
| Default constructor creates an invalid BBox. More...
|
|
| BBox (const Vec3T &xyzMin, const Vec3T &xyzMax) |
| Constructor based on a minimum and maximum point. More...
|
|
| BBox (const Vec3T &xyzMin, const Vec3T &xyzMax, bool sorted) |
| Constructor based on a minimum and maximum point. If sorted is false the points will be sorted by x,y,z component. More...
|
|
| BBox (const Vec3T &xyzMin, const ElementType &length) |
| Contruct a cubical BBox from a minimum coordinate and a single edge length. More...
|
|
| BBox (const ElementType *xyz, bool sorted=true) |
| Constructor based on a raw array of six points. If sorted is false the points will be sorted by x,y,z component. More...
|
|
| BBox (const BBox &)=default |
| Copy constructor. More...
|
|
BBox & | operator= (const BBox &)=default |
| Assignment operator. More...
|
|
void | sort () |
| Sort the min/max by x,y,z component. More...
|
|
const Vec3T & | min () const |
| Return a const reference to the minimum point of the BBox. More...
|
|
const Vec3T & | max () const |
| Return a const reference to the maximum point of the BBox. More...
|
|
Vec3T & | min () |
| Return a non-const reference to the minimum point of the BBox. More...
|
|
Vec3T & | max () |
| Return a non-const reference to the maximum point of the BBox. More...
|
|
bool | operator== (const BBox &rhs) const |
| Return true if the two BBox'es are identical. More...
|
|
bool | operator!= (const BBox &rhs) const |
| Return true if the two BBox'es are not identical. More...
|
|
bool | empty () const |
| Return true if the BBox is empty, i.e. has no (positive) volume. More...
|
|
bool | hasVolume () const |
| Return true if the BBox has a (positive) volume. More...
|
|
| operator bool () const |
| Return true if the BBox is valid, i.e. as a (positive) volume. More...
|
|
bool | isSorted () const |
| Return true if the all components of mMin <= mMax, i.e. the volume is not negative. More...
|
|
Vec3d | getCenter () const |
| Return the center point of the BBox. More...
|
|
Vec3T | extents () const |
| Returns the extents of the BBox, i.e. the length per axis for floating points values or number of grids per axis points integral values. More...
|
|
ElementType | volume () const |
| Return the volume spanned by this BBox. More...
|
|
size_t | maxExtent () const |
| Return the index (0, 1 or 2) of the longest axis. More...
|
|
size_t | minExtent () const |
| Return the index (0, 1 or 2) of the shortest axis. More...
|
|
bool | isInside (const Vec3T &xyz) const |
| Return true if point (x, y, z) is inside this bounding box. More...
|
|
bool | isInside (const BBox &) const |
| Return true if the given bounding box is inside this bounding box. More...
|
|
bool | hasOverlap (const BBox &) const |
| Return true if the given bounding box overlaps with this bounding box. More...
|
|
void | expand (ElementType padding) |
| Pad this bounding box. More...
|
|
void | expand (const Vec3T &xyz) |
| Expand this bounding box to enclose point (x, y, z). More...
|
|
void | expand (const BBox &) |
| Union this bounding box with the given bounding box. More...
|
|
void | expand (const Vec3T &xyzMin, const ElementType &length) |
|
void | translate (const Vec3T &t) |
| Translate this bounding box by . More...
|
|
template<typename MapType > |
BBox | applyMap (const MapType &map) const |
| Apply a map to this bounding box. More...
|
|
template<typename MapType > |
BBox | applyInverseMap (const MapType &map) const |
| Apply the inverse of a map to this bounding box. More...
|
|
void | read (std::istream &is) |
| Unserialize this bounding box from the given stream. More...
|
|
void | write (std::ostream &os) const |
| Serialize this bounding box to the given stream. More...
|
|
template<typename MapType > |
BBox< Vec3T > | applyMap (const MapType &map) const |
|
template<typename MapType > |
BBox< Vec3T > | applyInverseMap (const MapType &map) const |
|
template<typename Vec3T>
class openvdb::v4_0_2::math::BBox< Vec3T >
Axis-aligned bounding box.