|
| CoordBBox () |
| The default constructor produces an empty bounding box. More...
|
|
| CoordBBox (const Coord &min, const Coord &max) |
| Construct a bounding box with the given min and max bounds. More...
|
|
| CoordBBox (ValueType xMin, ValueType yMin, ValueType zMin, ValueType xMax, ValueType yMax, ValueType zMax) |
| Construct from individual components of the min and max bounds. More...
|
|
| CoordBBox (CoordBBox &other, const tbb::split &) |
| Splitting constructor for use in TBB ranges. More...
|
|
const Coord & | min () const |
|
const Coord & | max () const |
|
Coord & | min () |
|
Coord & | max () |
|
void | reset () |
|
void | reset (const Coord &min, const Coord &max) |
|
void | resetToCube (const Coord &min, ValueType dim) |
|
Coord | getStart () const |
| Return the minimum coordinate. More...
|
|
Coord | getEnd () const |
| Return the maximum coordinate plus one. More...
|
|
ZYXIterator | begin () const |
| Return a ZYX-order iterator that points to the minimum coordinate. More...
|
|
ZYXIterator | beginZYX () const |
| Return a ZYX-order iterator that points to the minimum coordinate. More...
|
|
XYZIterator | beginXYZ () const |
| Return an XYZ-order iterator that points to the minimum coordinate. More...
|
|
ZYXIterator | end () const |
| Return a ZYX-order iterator that points past the maximum coordinate. More...
|
|
ZYXIterator | endZYX () const |
| Return a ZYX-order iterator that points past the maximum coordinate. More...
|
|
XYZIterator | endXYZ () const |
| Return an XYZ-order iterator that points past the maximum coordinate. More...
|
|
bool | operator== (const CoordBBox &rhs) const |
|
bool | operator!= (const CoordBBox &rhs) const |
|
bool | empty () const |
| Return true if this bounding box is empty (i.e., encloses no coordinates). More...
|
|
| operator bool () const |
| Return true if this bounding box is nonempty (i.e., encloses at least one coordinate). More...
|
|
bool | hasVolume () const |
| Return true if this bounding box is nonempty (i.e., encloses at least one coordinate). More...
|
|
Vec3d | getCenter () const |
| Return the floating-point position of the center of this bounding box. More...
|
|
Coord | dim () const |
| Return the dimensions of the coordinates spanned by this bounding box. More...
|
|
Coord | extents () const |
|
Index64 | volume () const |
| Return the integer volume of coordinates spanned by this bounding box. More...
|
|
bool | is_divisible () const |
| Return true if this bounding box can be subdivided [mainly for use by TBB]. More...
|
|
size_t | minExtent () const |
| Return the index (0, 1 or 2) of the shortest axis. More...
|
|
size_t | maxExtent () const |
| Return the index (0, 1 or 2) of the longest axis. More...
|
|
bool | isInside (const Coord &xyz) const |
| Return true if point (x, y, z) is inside this bounding box. More...
|
|
bool | isInside (const CoordBBox &b) const |
| Return true if the given bounding box is inside this bounding box. More...
|
|
bool | hasOverlap (const CoordBBox &b) const |
| Return true if the given bounding box overlaps with this bounding box. More...
|
|
void | expand (ValueType padding) |
| Pad this bounding box with the specified padding. More...
|
|
CoordBBox | expandBy (ValueType padding) const |
| Return a new instance that is expanded by the specified padding. More...
|
|
void | expand (const Coord &xyz) |
| Expand this bounding box to enclose point (x, y, z). More...
|
|
void | expand (const CoordBBox &bbox) |
| Union this bounding box with the given bounding box. More...
|
|
void | intersect (const CoordBBox &bbox) |
| Intersect this bounding box with the given bounding box. More...
|
|
void | expand (const Coord &min, Coord::ValueType dim) |
| Union this bounding box with the cubical bounding box of the given size and with the given minimum coordinates. More...
|
|
void | translate (const Coord &t) |
| Translate this bounding box by (tx, ty, tz). More...
|
|
void | moveMin (const Coord &min) |
| Move this bounding box to the specified min. More...
|
|
void | moveMax (const Coord &max) |
| Move this bounding box to the specified max. More...
|
|
void | getCornerPoints (Coord *p) const |
| Populates an array with the eight corner points of 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...
|
|
|
CoordBBox | operator>> (size_t n) const |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox | operator<< (size_t n) const |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox & | operator<<= (size_t n) |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox & | operator>>= (size_t n) |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox | operator& (Coord::Int32 n) const |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox | operator| (Coord::Int32 n) const |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox & | operator&= (Coord::Int32 n) |
| Bit-wise operations performed on both the min and max members. More...
|
|
CoordBBox & | operator|= (Coord::Int32 n) |
| Bit-wise operations performed on both the min and max members. More...
|
|
Axis-aligned bounding box of signed integer coordinates.
- Note
- The range of the integer coordinates, [min, max], is inclusive. Thus, a bounding box with min = max is not empty but rather encloses a single coordinate.