|
| SbBox3i32 () |
| Constructor for a 3D integer32 box.
|
|
| SbBox3i32 (int xmin, int ymin, int zmin, int xmax, int ymax, int zmax) |
| Constructor for a 3D integer32 box.
|
|
| SbBox3i32 (const SbVec3i32 &_min, const SbVec3i32 &_max) |
| Constructor for a 3D integer32 box.
|
|
| SbBox3i32 (const SbBox3s &box) |
| Constructor given an SbBox3s (adapter).
|
|
| ~SbBox3i32 () |
| Destructor.
|
|
const SbVec3i32 & | getMin () const |
| Returns the minimum point of the box.
|
|
const SbVec3i32 & | getMax () const |
| Returns the maximum point of the box.
|
|
SbVec3i32 & | getMin () |
| Returns the minimum point of the box.
|
|
SbVec3i32 & | getMax () |
| Returns the maximum point of the box.
|
|
SbVec3f | getCenter () const |
| Returns the center of the box.
|
|
void | extendBy (const SbVec3f &pt) |
| Extends this box (if necessary) to contain the specified point.
|
|
void | extendBy (const SbBox3i32 &bb) |
| Extends this box (if necessary) to contain the specified box.
|
|
SbBool | intersect (const SbVec3f &pt) const |
| Returns TRUE if the specified point intersects this box.
|
|
SbBool | intersect (const SbBox3i32 &bb) const |
| Returns TRUE if the specified box intersects this box.
|
|
SbBool | intersect (const SbVec3i32 &pt) const |
| Returns TRUE if the specified point intersects this box.
|
|
SbBox3i32 | intersection (const SbBox3i32 &box) const |
| Returns the intersection of the specified box with this box.
|
|
SbBool | contains (const SbBox3i32 &bb) const |
| Returns TRUE if the specified box is fully contained inside this box.
|
|
SbBool | outside (const SbMatrix &MVP, int &cullBits) const |
| Returns TRUE if bounding box is completely outside the view-volume defined by the model+view+projection matrix given.
|
|
void | setBounds (int xmin, int ymin, int zmin, int xmax, int ymax, int zmax) |
| Sets the corners of the box.
|
|
void | setBounds (const SbVec3i32 &_min, const SbVec3i32 &_max) |
| Sets the corners of the box.
|
|
void | getBounds (int &xmin, int &ymin, int &zmin, int &xmax, int &ymax, int &zmax) const |
| Gets the corners of the box.
|
|
void | getBounds (SbVec3i32 &_min, SbVec3i32 &_max) const |
| Gets the corners of the box.
|
|
SbVec3f | getClosestPoint (const SbVec3f &point) const |
| Returns the closest point on the box to the given point.
|
|
void | getOrigin (int &originX, int &originY, int &originZ) const |
| Gets box origin which is the same as the minimum corner of the box.
|
|
void | getSize (int &sizeX, int &sizeY, int &sizeZ) const |
| Gets box size.
|
|
SbVec3i32 | getSize () const |
| Gets box size.
|
|
void | makeEmpty () |
| Makes an empty box.
|
|
SbBool | isEmpty () const |
| Returns TRUE if the box is empty, and FALSE otherwise.
|
|
SbBool | hasVolume () const |
| Returns TRUE if all three dimensions of the box have positive size, and FALSE otherwise.
|
|
void | getSpan (const SbVec3f &direction, float &dMin, float &dMax) const |
| Finds the span of a box along a specified direction.
|
|
void | transform (const SbMatrix &m) |
| Transforms box by matrix, enlarging box to contain result.
|
|
float | getVolume () const |
| Returns the volume of the box.
|
|
SbBox3i32 | operator= (const SbBox3s &box) |
| Assignment operator given an SbBox3s (adapter).
|
|
3D box class.
3D box which has planes parallel to the major axes and is specified by two points on a diagonal. This class is part of the standard Open Inventor datatype classes and is used as input and output to geometry operations (see SoGetBoundingBoxAction).
SEE ALSO
SbXfBox3f, SbBox2f, SbBox3s, SbBox2i32, SbBox2s, SbVec3i32, SbVec3s, SbVec2f, SbVec2i32, SbVec2s, SbMatrix, SoGetBoundingBoxAction
Definition at line 96 of file SbBox.h.