Open Inventor Reference
SoBoundingBoxCache Class Reference

Class SoBoundingBoxCache: More...

#include <Inventor/caches/SoBoundingBoxCache.h>

Inheritance diagram for SoBoundingBoxCache:
SoCache

List of all members.

Public Member Functions

 SoBoundingBoxCache (SoState *state)
 Constructor and destructor.
 ~SoBoundingBoxCache ()
void set (const SbXfBox3f &boundingBox, SbBool centerSet, const SbVec3f &centerPoint)
 Stores a bounding box and center point in the cache.
const SbXfBox3fgetBox () const
const SbBox3fgetProjectedBox () const
SbBool isCenterSet () const
 Returns TRUE if the center is valid.
const SbVec3fgetCenter () 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.

Detailed Description

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.


Constructor & Destructor Documentation

SoBoundingBoxCache::SoBoundingBoxCache ( SoState state)
SoBoundingBoxCache::~SoBoundingBoxCache ( )

Member Function Documentation

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.)


The documentation for this class was generated from the following file: