|
| | SbXfBox3d () |
| | Constructor.
|
| |
| | SbXfBox3d (const SbVec3d &_min, const SbVec3d &_max) |
| | Constructor.
|
| |
| | SbXfBox3d (const SbBox3d &box) |
| | Constructor.
|
| |
| | ~SbXfBox3d () |
| | Destructor.
|
| |
| void | setTransform (const SbMatrixd &m) |
| | Sets the transformation on the box.
|
| |
| const SbMatrixd & | getTransform () const |
| | Gets the transformation on the box.
|
| |
| const SbMatrixd & | getInverse () const |
| | Gets the inverse of the transformation on the box.
|
| |
| SbVec3d | getCenter () const |
| | Returns the center of the box.
|
| |
| void | extendBy (const SbVec3d &pt) |
| | Extends the box (if necessary) to contain the given 3D point.
|
| |
| void | extendBy (const SbBox3d &bb) |
| | Extends the box (if necessary) to contain the given box.
|
| |
| void | extendBy (const SbXfBox3d &bb) |
| | Extends the box (if necessary) to contain the given box.
|
| |
| SbBool | intersect (const SbVec3d &pt) const |
| | Returns TRUE if intersection of given point and this box is not empty.
|
| |
| SbBool | intersect (const SbBox3d &bb) const |
| | Returns TRUE if intersection of this XfBox3d and the given Box3d is not empty.
|
| |
| SbXfBox3d & | setValue (const SbXfBox3f &xfbox3f) |
| | Sets value of the box from a single precision box.
|
| |
| void | setBounds (double xmin, double ymin, double zmin, double xmax, double ymax, double zmax) |
| | Sets the bounds of the box.
|
| |
| void | setBounds (const SbVec3d &_min, const SbVec3d &_max) |
| | Sets the bounds of the box.
|
| |
| void | getBounds (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const |
| | Gets the bounds of the box.
|
| |
| void | getBounds (SbVec3d &_min, SbVec3d &_max) const |
| | Gets the bounds of the box.
|
| |
| void | getOrigin (double &originX, double &originY, double &originZ) const |
| | Returns origin (minimum point) of the box.
|
| |
| void | getSize (double &sizeX, double &sizeY, double &sizeZ) const |
| | Returns size of the box.
|
| |
| double | getVolume () const |
| | Gives the volume of the box (0 for an empty box).
|
| |
| void | makeEmpty () |
| | Sets the box to contain nothing.
|
| |
| SbBool | isEmpty () const |
| | Returns TRUE if the box is empty, and FALSE otherwise.
|
| |
| SbBool | hasVolume () const |
| | Checks if the box has volume; i.e., all three dimensions have positive size.
|
| |
| void | getSpan (const SbVec3d &direction, double &dMin, double &dMax) const |
| | Finds the extent of the box along a particular direction.
|
| |
| void | transform (const SbMatrixd &m) |
| | Transforms the box by the given matrix.
|
| |
| SbBox3d | project () const |
| | Projects an SbXfBox3d to an SbBox3d.
|
| |
| | SbBox3d () |
| | Constructor for a 3D double box.
|
| |
| | SbBox3d (double xmin, double ymin, double zmin, double xmax, double ymax, double zmax) |
| | Constructor for a 3D double box.
|
| |
| | SbBox3d (const SbVec3d &_min, const SbVec3d &_max) |
| | Constructor for a 3D double box.
|
| |
| | ~SbBox3d () |
| | Destructor.
|
| |
| const SbVec3d & | getMin () const |
| | Returns the minimum point of the box.
|
| |
| const SbVec3d & | getMax () const |
| | Returns the maximum point of the box.
|
| |
| SbVec3d & | getMin () |
| | Returns the minimum point of the box.
|
| |
| SbVec3d & | getMax () |
| | Returns the maximum point of the box.
|
| |
| SbVec3d | getCenter () const |
| | Returns the center of the box.
|
| |
| void | extendBy (const SbVec3d &pt) |
| | Extends this box (if necessary) to contain the specified point.
|
| |
| void | extendBy (const SbBox3d &bb) |
| | Extends this box (if necessary) to contain the specified box.
|
| |
| SbBool | intersect (const SbVec3d &pt) const |
| | Returns TRUE if the specified point intersects this box.
|
| |
| SbBool | intersect (const SbBox3d &bb) const |
| | Returns TRUE if the specified box intersects this box.
|
| |
| SbBox3d | intersection (const SbBox3d &box) const |
| | Returns the intersection of the specified box with this box.
|
| |
| SbBool | contains (const SbBox3d &bb) const |
| | Returns TRUE if the specified box is fully contained inside this box.
|
| |
| SbBool | outside (const SbMatrixd &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 (double xmin, double ymin, double zmin, double xmax, double ymax, double zmax) |
| | Sets the corners of the box.
|
| |
| void | setBounds (const SbVec3d &_min, const SbVec3d &_max) |
| | Sets the corners of the box.
|
| |
| void | getBounds (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const |
| | Gets the corners of the box.
|
| |
| void | getBounds (SbVec3d &_min, SbVec3d &_max) const |
| | Gets the corners of the box.
|
| |
| SbVec3d | getClosestPoint (const SbVec3d &point) const |
| | Returns the closest point on the box to the given point.
|
| |
| void | getOrigin (double &originX, double &originY, double &originZ) const |
| | Gets box origin which is the same as the minimum corner of the box.
|
| |
| void | getSize (double &sizeX, double &sizeY, double &sizeZ) const |
| | Gets box size.
|
| |
| SbVec3d | 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 SbVec3d &direction, double &dMin, double &dMax) const |
| | Finds the span of a box along a specified direction.
|
| |
| void | transform (const SbMatrixd &m) |
| | Transforms box by matrix, enlarging box to contain result.
|
| |
| double | getVolume () const |
| | Returns the volume of the box.
|
| |
| template<typename T> |
| | SbBox3d (const T &b) |
| | Constructor that converts an arbitrary SbBox3 to an SbBox3f.
|
| |
3D box with an associated transformation matrix.
A 3D box with an arbitrary transformation applied. This class is useful when a box will be transformed frequently; if an SbBox3f is used for this purpose it will expand each time it is transformed in order to keep itself axis-aligned. Transformations can be accumulated on an SbXfBox3d without expanding the box, and after all transformations have been done, the box can be expanded to an axis-aligned box if necessary.
SEE ALSO
SbBox3f, SbBox2f, SbBox2s, SbVec3d, SbVec2f, SbVec2s, SbMatrix, SoGetBoundingBoxAction
Definition at line 1513 of file SbBox.h.