4D box class.
More...
#include <Inventor/SbBox.h>
Public Member Functions | |
| SbBox4i32 () | |
| SbBox4i32 (const SbVec4i32 &_min, const SbVec4i32 &_max) | |
| ~SbBox4i32 () | |
| const SbVec4i32 & | getMin () const |
| const SbVec4i32 & | getMax () const |
| SbVec4i32 & | getMin () |
| SbVec4i32 & | getMax () |
| void | extendBy (const SbVec4i32 &pt) |
| SbBool | intersect (const SbVec4i32 &pt) const |
| SbVec4i32 | getSize () const |
| void | makeEmpty () |
| SbBool | isEmpty () const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const SbBox4i32 &b) |
| int | operator== (const SbBox4i32 &b1, const SbBox4i32 &b2) |
| int | operator!= (const SbBox4i32 &b1, const SbBox4i32 &b2) |
4D box class.
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
| SbBox4i32::SbBox4i32 | ( | ) | [inline] |
Constructor for a 4D integer32 box.
The box is initially empty.
Constructor for a 4D integer32 box.
m_min and m_max are the corners of the diagonal that define the box.
| SbBox4i32::~SbBox4i32 | ( | ) | [inline] |
Destructor.
| void SbBox4i32::extendBy | ( | const SbVec4i32 & | pt | ) | [inline] |
Extends this box (if necessary) to contain the specified point.
| SbVec4i32& SbBox4i32::getMax | ( | ) | [inline] |
Returns the maximum point of the box.
The maximum point is the corner of the box with the highest X, Y, Z and W values.
| const SbVec4i32& SbBox4i32::getMax | ( | ) | const [inline] |
Returns the maximum point of the box.
The maximum point is the corner of the box with the highest X, Y, Z and W values.
| SbVec4i32& SbBox4i32::getMin | ( | ) | [inline] |
Returns the minimum point of the box.
The minimum point is the corner of the box with the lowest X, Y, Z and W values.
| const SbVec4i32& SbBox4i32::getMin | ( | ) | const [inline] |
Returns the minimum point of the box.
The minimum point is the corner of the box with the lowest X, Y, Z and W values.
| SbVec4i32 SbBox4i32::getSize | ( | void | ) | const [inline] |
Gets box size.
Returns TRUE if the specified point intersects this box.
| SbBool SbBox4i32::isEmpty | ( | ) | const [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.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const SbBox4i32 & | b | |||
| ) | [friend] |
Writes the box to the specified output stream.