libeblearn
|
A bounding box that can be composed from multiple bounding boxes. More...
#include <bbox.h>
Public Member Functions | |
bbox_parts () | |
Empty constructor (assign a new unique instance_id). | |
bbox_parts (const bbox &other) | |
Copy constructor from another bbox. | |
bbox_parts (const bbox_parts &other) | |
Copy constructor. | |
virtual | ~bbox_parts () |
Destructor. | |
void | add_part (const bbox &p) |
Declare another bbox to be part of this bbox. | |
void | add_part (const bbox_parts &p) |
Declare another bbox to be part of this bbox. | |
bool | share_parts (bbox_parts &bbp) |
vector< bbox_parts > & | get_parts () |
Return a reference to the parts vector. | |
Protected Attributes | |
vector< bbox_parts > | parts |
A bounding box that can be composed from multiple bounding boxes.
bool ebl::bbox_parts::share_parts | ( | bbox_parts & | bbp | ) |
Returns true if this and bbp share at least 1 part, using instance_id to identify parts uniquely.