Collaboration diagram for col::ElemBox:
Public Member Functions | |
ElemBox () | |
Default constructor. | |
ElemBox (const osg::FaceIterator &fi, const osg::MFPnt3f *points) | |
Constructor. | |
void | set (const osg::FaceIterator &fi, const osg::MFPnt3f *points) |
Copy a polygon into an elementary box. | |
void | operator= (const ElemBox &source) |
Copy elementary box. | |
bool | operator== (const ElemBox &other) const |
Two elementary boxes are equal, if their polygons are equal. | |
Static Public Member Functions | |
static void | calcBox (const vector< ElemBox > &elem, const int left, const int right, Pnt3f *low, Pnt3f *high) |
Compute bbox enclosing all elementary boxes. | |
Public Attributes | |
Pnt3f | m_low |
Pnt3f | m_high |
const osg::MFPnt3f * | points |
unsigned int | m_pgon [Boxtree::M_MaxNVertices] |
unsigned int | m_nvertices |
osg::GeometryPtr | geom |
unsigned int | m_index |
Pnt3f | m_center |
This is a helper class for Boxtree::build() only!
col::ElemBox::ElemBox | ( | const osg::FaceIterator & | fi, | |
const osg::MFPnt3f * | nodepoints | |||
) |
void col::ElemBox::set | ( | const osg::FaceIterator & | fi, | |
const osg::MFPnt3f * | nodepoints | |||
) |
Copy a polygon into an elementary box.
fi | face iterator | |
nodepoints | the array of points of the geometry |
Calculate and set the barycenter of the elementary box.
bool col::ElemBox::operator== | ( | const ElemBox & | other | ) | const |
Two elementary boxes are equal, if their polygons are equal.
void col::ElemBox::calcBox | ( | const vector< ElemBox > & | elem, | |
const int | left, | |||
const int | right, | |||
Pnt3f * | low, | |||
Pnt3f * | high | |||
) | [static] |
Compute bbox enclosing all elementary boxes.
elem | array of elementary boxes | |
left,right | consider only elems from left..right (inclusively) | |
low,high | resulting bbox (out) |