#include <bbox.h>
Public Member Functions | |
BBox (const Box &box) | |
const Box & | box () const |
virtual bool | fitsIntoBox (const Box &box) const |
virtual bool | interfereWithBox (const Box &box) const |
virtual bool | isPointInside (float x, float y, float z) const |
virtual bool | isSimilar (const Object *object) const |
virtual bool | isSimilarBBox (const BBox *object) const |
Private Attributes | |
Box | m_box |
objtree::BBox::BBox | ( | const Box & | box | ) |
const Box & objtree::BBox::box | ( | ) | const |
bool objtree::BBox::fitsIntoBox | ( | const Box & | box | ) | const [virtual] |
Returns true if BBox fits into a box.
box | box for test |
Implements objtree::Object.
bool objtree::BBox::interfereWithBox | ( | const Box & | box | ) | const [virtual] |
Returns true if BBox interferes with a box.
box | box for test |
Implements objtree::Object.
bool objtree::BBox::isPointInside | ( | float | x, |
float | y, | ||
float | z | ||
) | const [virtual] |
Check if point is in the BBox.
x | |
y | |
z |
Implements objtree::Object.
bool objtree::BBox::isSimilar | ( | const Object * | object | ) | const [virtual] |
Compare other object for similarity.
object | object to compare |
Implements objtree::Object.
Reimplemented in objtree::GBBox.
bool objtree::BBox::isSimilarBBox | ( | const BBox * | box | ) | const [virtual] |
Box objtree::BBox::m_box [private] |