#include <bvh.h>
Public Member Functions | |
double | computeBoundingBoxVolume () const |
Computes and returns the volume of the bounding box of this node. | |
Node * | getLeftChild () |
BoundedObject * | getObject () |
Node * | getRightChild () |
bool | hasChildren () const |
bool | intersect (const float box[6]) const |
Returns true if 'box' intersects or touches (with a side or a vertex) this node. | |
bool | isLeaf () const |
Node (std::vector< BoundedObject * > &sorted_objects, int first_id, int last_id) | |
'sorted_objects' is a sorted vector of bounded objects. It has to be sorted in ascending order according to the objects' x-coordinates. The constructor recursively calls itself with the right 'first_id' and 'last_id' and with the same vector 'sorted_objects'. | |
virtual | ~Node () |
Protected Attributes | |
float | bounds_ [6] |
Node * | children_ [2] |
BoundedObject * | object_ |
Friends | |
class | BVH |
pcl::recognition::BVH< UserData >::Node::Node | ( | std::vector< BoundedObject * > & | sorted_objects, |
int | first_id, | ||
int | last_id | ||
) | [inline] |
virtual pcl::recognition::BVH< UserData >::Node::~Node | ( | ) | [inline, virtual] |
double pcl::recognition::BVH< UserData >::Node::computeBoundingBoxVolume | ( | ) | const [inline] |
Node* pcl::recognition::BVH< UserData >::Node::getLeftChild | ( | ) | [inline] |
BoundedObject* pcl::recognition::BVH< UserData >::Node::getObject | ( | ) | [inline] |
Node* pcl::recognition::BVH< UserData >::Node::getRightChild | ( | ) | [inline] |
bool pcl::recognition::BVH< UserData >::Node::hasChildren | ( | ) | const [inline] |
bool pcl::recognition::BVH< UserData >::Node::intersect | ( | const float | box[6] | ) | const [inline] |
bool pcl::recognition::BVH< UserData >::Node::isLeaf | ( | ) | const [inline] |
float pcl::recognition::BVH< UserData >::Node::bounds_[6] [protected] |
Node* pcl::recognition::BVH< UserData >::Node::children_[2] [protected] |
BoundedObject* pcl::recognition::BVH< UserData >::Node::object_ [protected] |