SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::defaulttype::TBoundingBox< TReal > Class Template Reference

#include <BoundingBox.h>

Inheritance diagram for sofa::defaulttype::TBoundingBox< TReal >:

Public Member Functions

 TBoundingBox (const TReal *minBBoxPtr, const TReal *maxBBoxPtr)
 
- Public Member Functions inherited from sofa::defaulttype::BoundingBox
 BoundingBox ()
 
 BoundingBox (const Vector3 &minBBox, const Vector3 &maxBBox)
 Define using the endpoints of the main diagonal. More...
 
 BoundingBox (const bbox_t &bbox)
 
 BoundingBox (SReal xmin, SReal xmax, SReal ymin, SReal ymax, SReal zmin, SReal zmax)
 Define using xmin, xmax, ymin, ymax, zmin, zmax in this order. More...
 
 BoundingBox (const Vec6f &bbox)
 Define using xmin, xmax, ymin, ymax, zmin, zmax in this order. More...
 
 BoundingBox (const Vec6d &bbox)
 Define using xmin, xmax, ymin, ymax, zmin, zmax in this order. More...
 
 operator bbox_t () const
 
void invalidate ()
 
bool isValid () const
 
bool isFlat () const
 
bool isNegligeable () const
 
bool isNull () const
 
SReal * minBBoxPtr ()
 
SReal * maxBBoxPtr ()
 
const SReal * minBBoxPtr () const
 
const SReal * maxBBoxPtr () const
 
const Vector3 & minBBox () const
 
const Vector3 & maxBBox () const
 
Vector3 & minBBox ()
 
Vector3 & maxBBox ()
 
bool contains (const sofa::defaulttype::Vector3 &point) const
 
bool contains (const BoundingBox &other) const
 
bool intersect (const BoundingBox &other) const
 
void intersection (const BoundingBox &other)
 
void include (const sofa::defaulttype::Vector3 &point)
 
void include (const BoundingBox &other)
 
void inflate (SReal amount)
 
BoundingBox getIntersection (const BoundingBox &other) const
 
BoundingBox getInclude (const sofa::defaulttype::Vector3 &point) const
 
BoundingBox getInclude (const BoundingBox &other) const
 
BoundingBox getInflate (SReal amount) const
 

Additional Inherited Members

- Protected Attributes inherited from sofa::defaulttype::BoundingBox
bbox_t bbox
 
- Static Public Member Functions inherited from sofa::defaulttype::BoundingBox
static BoundingBox neutral_bbox ()
 

Constructor details

template<typename TReal >
sofa::defaulttype::TBoundingBox< TReal >::TBoundingBox ( const TReal *  minBBoxPtr,
const TReal *  maxBBoxPtr 
)
inline