Open Inventor Reference
|
Class SoBoundingBoxCache: More...
#include <Inventor/caches/SoBoundingBoxCache.h>
Public Member Functions | |
SoBoundingBoxCache (SoState *state) | |
Constructor and destructor. | |
~SoBoundingBoxCache () | |
void | set (const SbXfBox3f &boundingBox, SbBool centerSet, const SbVec3f ¢erPoint) |
Stores a bounding box and center point in the cache. | |
const SbXfBox3f & | getBox () const |
const SbBox3f & | getProjectedBox () const |
SbBool | isCenterSet () const |
Returns TRUE if the center is valid. | |
const SbVec3f & | getCenter () const |
Returns the center (in object space) | |
SbBool | hasLinesOrPoints () const |
Returns the hasLinesOrPoints flag. | |
Static Public Member Functions | |
static void | setHasLinesOrPoints (SoState *state) |
Sets the hasLinesOrPoints flag to TRUE in all open bounding box caches in the given state. |
A bounding box cache stores a bounding box and center point. It also stores a flag indicating whether the box contains any line or point objects, meaning that intersection tests with the box should use a little extra leeway.
Definition at line 74 of file SoBoundingBoxCache.h.
SoBoundingBoxCache::SoBoundingBoxCache | ( | SoState * | state | ) |
SoBoundingBoxCache::~SoBoundingBoxCache | ( | ) |
const SbXfBox3f& SoBoundingBoxCache::getBox | ( | ) | const [inline] |
Definition at line 86 of file SoBoundingBoxCache.h.
const SbVec3f& SoBoundingBoxCache::getCenter | ( | ) | const [inline] |
Definition at line 95 of file SoBoundingBoxCache.h.
const SbBox3f& SoBoundingBoxCache::getProjectedBox | ( | ) | const [inline] |
Definition at line 88 of file SoBoundingBoxCache.h.
SbBool SoBoundingBoxCache::hasLinesOrPoints | ( | ) | const [inline] |
Definition at line 102 of file SoBoundingBoxCache.h.
SbBool SoBoundingBoxCache::isCenterSet | ( | ) | const [inline] |
Definition at line 91 of file SoBoundingBoxCache.h.
void SoBoundingBoxCache::set | ( | const SbXfBox3f & | boundingBox, |
SbBool | centerSet, | ||
const SbVec3f & | centerPoint | ||
) |
static void SoBoundingBoxCache::setHasLinesOrPoints | ( | SoState * | state | ) | [static] |
(The flag is FALSE by default.)