OSG
3.4.0
|
#include <BoundingBox.h>
Public Types | |
typedef VT | vec_type |
typedef VT::value_type | value_type |
Public Attributes | |
vec_type | _min |
vec_type | _max |
General purpose axis-aligned bounding box class for enclosing objects/vertices. Bounds leaf objects in a scene such as osg::Drawable objects. Used for frustum culling etc.
Definition at line 33 of file BoundingBox.h.
typedef VT::value_type osg::BoundingBoxImpl< VT >::value_type |
Definition at line 37 of file BoundingBox.h.
typedef VT osg::BoundingBoxImpl< VT >::vec_type |
Definition at line 36 of file BoundingBox.h.
|
inline |
Creates an uninitialized bounding box.
Definition at line 45 of file BoundingBox.h.
|
inline |
Definition at line 55 of file BoundingBox.h.
|
inline |
Creates a bounding box initialized to the given extents.
Definition at line 61 of file BoundingBox.h.
|
inline |
Creates a bounding box initialized to the given extents.
Definition at line 67 of file BoundingBox.h.
|
inline |
Calculates and returns the bounding box center.
Definition at line 126 of file BoundingBox.h.
|
inline |
Returns true if this bounding box contains the specified coordinate.
Definition at line 233 of file BoundingBox.h.
|
inline |
Returns true if this bounding box contains the specified coordinate allowing for specific epsilon.
Definition at line 242 of file BoundingBox.h.
|
inline |
Returns a specific corner of the bounding box. pos specifies the corner as a number between 0 and 7. Each bit selects an axis, X, Y, or Z from least- to most-significant. Unset bits select the minimum value for that axis, and set bits select the maximum.
Definition at line 149 of file BoundingBox.h.
|
inline |
Expands the bounding box to include the given coordinate. If the box is uninitialized, set its min and max extents to v.
Definition at line 156 of file BoundingBox.h.
|
inline |
Expands the bounding box to include the given coordinate. If the box is uninitialized, set its min and max extents to Vec3(x,y,z).
Definition at line 171 of file BoundingBox.h.
|
inline |
Expands this bounding box to include the given bounding box. If this box is uninitialized, set it equal to bb.
Definition at line 185 of file BoundingBox.h.
|
inline |
Expands this bounding box to include the given sphere. If this box is uninitialized, set it to include sh.
Definition at line 202 of file BoundingBox.h.
|
inline |
Clear the bounding box. Erases existing minimum and maximum extents.
Definition at line 72 of file BoundingBox.h.
|
inline |
Returns the intersection of this bounding box and the specified bounding box.
Definition at line 218 of file BoundingBox.h.
|
inline |
Return true if this bounding box intersects the specified bounding box.
Definition at line 225 of file BoundingBox.h.
|
inline |
Definition at line 83 of file BoundingBox.h.
|
inline |
Definition at line 82 of file BoundingBox.h.
|
inline |
Calculates and returns the bounding box radius.
Definition at line 132 of file BoundingBox.h.
|
inline |
Calculates and returns the squared length of the bounding box radius. Note, radius2() is faster to calculate than radius().
Definition at line 139 of file BoundingBox.h.
|
inline |
Sets the bounding box extents.
Definition at line 92 of file BoundingBox.h.
|
inline |
Sets the bounding box extents.
Definition at line 100 of file BoundingBox.h.
|
inline |
Returns true if the bounding box extents are valid, false otherwise.
Definition at line 86 of file BoundingBox.h.
|
inline |
|
inline |
Definition at line 117 of file BoundingBox.h.
|
inline |
|
inline |
Definition at line 108 of file BoundingBox.h.
|
inline |
|
inline |
Definition at line 120 of file BoundingBox.h.
|
inline |
|
inline |
Definition at line 111 of file BoundingBox.h.
|
inline |
|
inline |
Definition at line 123 of file BoundingBox.h.
|
inline |
|
inline |
Definition at line 114 of file BoundingBox.h.
vec_type osg::BoundingBoxImpl< VT >::_max |
Maximum extent. (Greatest X, Y, and Z values of all coordinates.)
Definition at line 42 of file BoundingBox.h.
vec_type osg::BoundingBoxImpl< VT >::_min |
Minimum extent. (Smallest X, Y, and Z values of all coordinates.)
Definition at line 40 of file BoundingBox.h.