4D box class. More...
#include <Inventor/SbBox.h>
Public Member Functions | |
SbBox4i32 () | |
Constructor for a 4D integer32 box. | |
SbBox4i32 (const SbVec4i32 &_min, const SbVec4i32 &_max) | |
Constructor for a 4D integer32 box. | |
~SbBox4i32 () | |
Destructor. | |
const SbVec4i32 & | getMin () const |
Returns the minimum point of the box. | |
const SbVec4i32 & | getMax () const |
Returns the maximum point of the box. | |
SbVec4i32 & | getMin () |
Returns the minimum point of the box. | |
SbVec4i32 & | getMax () |
Returns the maximum point of the box. | |
void | extendBy (const SbVec4i32 &pt) |
Extends this box (if necessary) to contain the specified point. | |
SbBool | intersect (const SbVec4i32 &pt) const |
Returns TRUE if the specified point intersects this box. | |
SbVec4i32 | getSize () const |
Gets box size. | |
void | makeEmpty () |
Makes an empty box. | |
SbBool | isEmpty () const |
Returns TRUE if the box is empty, and FALSE otherwise. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SbBox4i32 &b) |
Writes the box to the specified output stream. | |
int | operator== (const SbBox4i32 &b1, const SbBox4i32 &b2) |
Equality comparison. | |
int | operator!= (const SbBox4i32 &b1, const SbBox4i32 &b2) |
Inequality comparison. | |
4D box which has planes parallel to the major axes and is specified by two points on a diagonal. Bounds are included in left and included in right, [min, max]. The bbox ((0, 0, 0, 0), (0, 0, 0, 0)) contains the single point (0, 0, 0, 0).
SbXfBox3f, SbBox2f, SbBox3s, SbBox2i32, SbBox2s, SbVec3i32, SbVec3s, SbVec2f, SbVec2i32, SbVec2s, SbMatrix, SoGetBoundingBoxAction
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns TRUE if the box is empty, and FALSE otherwise.
Note: Setting the box to all zeros does not make it "empty". Use the makeEmpty() method. (This method only returns true if the maximum X value is less than the minimum X value.)
void SbBox4i32::makeEmpty | ( | ) |
Makes an empty box.
|
friend |