Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
pcl::recognition::BVH< UserData >::BoundedObject Class Reference

#include <pcl/recognition/ransac_based/bvh.h>

Public Member Functions

 BoundedObject (const UserData &data)
 
virtual ~BoundedObject ()=default
 
float * getBounds ()
 
float * getCentroid ()
 
const float * getCentroid () const
 
UserData & getData ()
 

Static Public Member Functions

static bool compareCentroidsXCoordinates (const BoundedObject *a, const BoundedObject *b)
 This method is for std::sort. More...
 

Protected Attributes

float bounds_ [6]
 These are the bounds of the object. More...
 
float centroid_ [3]
 This is the centroid. More...
 
UserData data_
 This is the user-defined data object. More...
 

Detailed Description

template<class UserData>
class pcl::recognition::BVH< UserData >::BoundedObject

Definition at line 68 of file bvh.h.

Constructor & Destructor Documentation

◆ BoundedObject()

template<class UserData >
pcl::recognition::BVH< UserData >::BoundedObject::BoundedObject ( const UserData &  data)
inline

Definition at line 71 of file bvh.h.

◆ ~BoundedObject()

template<class UserData >
virtual pcl::recognition::BVH< UserData >::BoundedObject::~BoundedObject ( )
virtualdefault

Member Function Documentation

◆ compareCentroidsXCoordinates()

template<class UserData >
static bool pcl::recognition::BVH< UserData >::BoundedObject::compareCentroidsXCoordinates ( const BoundedObject a,
const BoundedObject b 
)
inlinestatic

This method is for std::sort.

Definition at line 80 of file bvh.h.

References pcl::recognition::BVH< UserData >::BoundedObject::getCentroid().

◆ getBounds()

template<class UserData >
float* pcl::recognition::BVH< UserData >::BoundedObject::getBounds ( )
inline

Definition at line 86 of file bvh.h.

◆ getCentroid() [1/2]

template<class UserData >
float* pcl::recognition::BVH< UserData >::BoundedObject::getCentroid ( )
inline

◆ getCentroid() [2/2]

template<class UserData >
const float* pcl::recognition::BVH< UserData >::BoundedObject::getCentroid ( ) const
inline

Definition at line 98 of file bvh.h.

◆ getData()

template<class UserData >
UserData& pcl::recognition::BVH< UserData >::BoundedObject::getData ( )
inline

Definition at line 104 of file bvh.h.

Member Data Documentation

◆ bounds_

template<class UserData >
float pcl::recognition::BVH< UserData >::BoundedObject::bounds_[6]
protected

These are the bounds of the object.

Definition at line 111 of file bvh.h.

◆ centroid_

template<class UserData >
float pcl::recognition::BVH< UserData >::BoundedObject::centroid_[3]
protected

This is the centroid.

Definition at line 113 of file bvh.h.

◆ data_

template<class UserData >
UserData pcl::recognition::BVH< UserData >::BoundedObject::data_
protected

This is the user-defined data object.

Definition at line 115 of file bvh.h.


The documentation for this class was generated from the following file: