#include <BoundingBox.h>
Protected Attributes | |
bbox_t | bbox |
Public Member Functions | |
BoundingBox () | |
BoundingBox (const sofa::type::Vec3 &minBBox, const sofa::type::Vec3 &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 sofa::type::Vec3 & | minBBox () const |
const sofa::type::Vec3 & | maxBBox () const |
sofa::type::Vec3 & | minBBox () |
sofa::type::Vec3 & | maxBBox () |
bool | contains (const sofa::type::Vec3 &point) const |
bool | contains (const BoundingBox &other) const |
bool | intersect (const BoundingBox &other) const |
void | intersection (const BoundingBox &other) |
void | include (const sofa::type::Vec3 &point) |
void | include (const BoundingBox &other) |
void | inflate (SReal amount) |
BoundingBox | getIntersection (const BoundingBox &other) const |
BoundingBox | getInclude (const sofa::type::Vec3 &point) const |
BoundingBox | getInclude (const BoundingBox &other) const |
BoundingBox | getInflate (SReal amount) const |
Static Public Member Functions | |
static BoundingBox | neutral_bbox () |
Friends | |
std::ostream & | operator<< (std::ostream &out, const BoundingBox &bbox) |
std::istream & | operator>> (std::istream &in, BoundingBox &bbox) |
|
protected |
sofa::type::BoundingBox::BoundingBox | ( | ) |
sofa::type::BoundingBox::BoundingBox | ( | const sofa::type::Vec3 & | minBBox, |
const sofa::type::Vec3 & | maxBBox | ||
) |
Define using the endpoints of the main diagonal.
sofa::type::BoundingBox::BoundingBox | ( | const bbox_t & | bbox | ) |
sofa::type::BoundingBox::BoundingBox | ( | SReal | xmin, |
SReal | xmax, | ||
SReal | ymin, | ||
SReal | ymax, | ||
SReal | zmin, | ||
SReal | zmax | ||
) |
Define using xmin, xmax, ymin, ymax, zmin, zmax in this order.
sofa::type::BoundingBox::BoundingBox | ( | const Vec6f & | bbox | ) |
Define using xmin, xmax, ymin, ymax, zmin, zmax in this order.
sofa::type::BoundingBox::BoundingBox | ( | const Vec6d & | bbox | ) |
Define using xmin, xmax, ymin, ymax, zmin, zmax in this order.
bool sofa::type::BoundingBox::contains | ( | const BoundingBox & | other | ) | const |
bool sofa::type::BoundingBox::contains | ( | const sofa::type::Vec3 & | point | ) | const |
BoundingBox sofa::type::BoundingBox::getInclude | ( | const BoundingBox & | other | ) | const |
BoundingBox sofa::type::BoundingBox::getInclude | ( | const sofa::type::Vec3 & | point | ) | const |
BoundingBox sofa::type::BoundingBox::getInflate | ( | SReal | amount | ) | const |
BoundingBox sofa::type::BoundingBox::getIntersection | ( | const BoundingBox & | other | ) | const |
void sofa::type::BoundingBox::include | ( | const BoundingBox & | other | ) |
void sofa::type::BoundingBox::include | ( | const sofa::type::Vec3 & | point | ) |
void sofa::type::BoundingBox::inflate | ( | SReal | amount | ) |
bool sofa::type::BoundingBox::intersect | ( | const BoundingBox & | other | ) | const |
void sofa::type::BoundingBox::intersection | ( | const BoundingBox & | other | ) |
void sofa::type::BoundingBox::invalidate | ( | ) |
bool sofa::type::BoundingBox::isFlat | ( | ) | const |
bool sofa::type::BoundingBox::isNegligeable | ( | ) | const |
bool sofa::type::BoundingBox::isNull | ( | ) | const |
bool sofa::type::BoundingBox::isValid | ( | ) | const |
sofa::type::Vec3 & sofa::type::BoundingBox::maxBBox | ( | ) |
const sofa::type::Vec3 & sofa::type::BoundingBox::maxBBox | ( | ) | const |
SReal * sofa::type::BoundingBox::maxBBoxPtr | ( | ) |
const SReal * sofa::type::BoundingBox::maxBBoxPtr | ( | ) | const |
sofa::type::Vec3 & sofa::type::BoundingBox::minBBox | ( | ) |
const sofa::type::Vec3 & sofa::type::BoundingBox::minBBox | ( | ) | const |
SReal * sofa::type::BoundingBox::minBBoxPtr | ( | ) |
const SReal * sofa::type::BoundingBox::minBBoxPtr | ( | ) | const |
|
static |
sofa::type::BoundingBox::operator bbox_t | ( | ) | const |
|
friend |
|
friend |