grasp
|
The Definition of the BoundingBox class. More...
#include <boundingBox.h>
Public Member Functions | |
BoundingBox () | |
Default Constructor. | |
BoundingBox (const iCub::data3D::Box3D &boundingBox) | |
Constructor. More... | |
iCub::data3D::Box3D | getBoundingBox () |
Return the Box3D structure underline the bounding box. More... | |
void | setBoundingBox (const iCub::data3D::Box3D &boundingBox) |
Set a Box3D inside the BoundingBox wrapper. More... | |
std::vector< iCub::data3D::PointXYZ > | getCorners () |
Return the corners of the Box3D structure. More... | |
void | setCorners (const std::vector< iCub::data3D::PointXYZ > &corners) |
Set the corners of the bounding box. More... | |
yarp::sig::Matrix | getOrientation () |
Return the orientation of the Box3D structure. More... | |
void | setOrientation (const yarp::sig::Matrix &orientation) |
Modify the orientation of the bounding box. More... | |
yarp::sig::Vector | getDim () |
Return the dimension of the principal axes, in the same order of the getAxis method. More... | |
void | getAxis (yarp::sig::Vector &x, yarp::sig::Vector &y, yarp::sig::Vector &z) |
Provide the principal axes of the bounding box. More... | |
yarp::sig::Vector | getCenter () |
Return the center of the bounding box. More... | |
void | drawBoundingBox (boost::shared_ptr< pcl::visualization::PCLVisualizer > viewer, int viewport=0) |
Draw a 3D box in a PCLVisualizer window. More... | |
The Definition of the BoundingBox class.
Definition at line 61 of file boundingBox.h.
BoundingBox::BoundingBox | ( | const iCub::data3D::Box3D & | boundingBox | ) |
Constructor.
boundingBox | a Box3D object can be set directly in the constructor. |
Definition at line 27 of file boundingBox.cpp.
void BoundingBox::drawBoundingBox | ( | boost::shared_ptr< pcl::visualization::PCLVisualizer > | viewer, |
int | viewport = 0 |
||
) |
Draw a 3D box in a PCLVisualizer window.
viewer | the PCLVisualizer window where the 3D box has to be drawn. |
viewport | the viewport inside the PCLVisualizer where the 3D box has to be drawn. |
Definition at line 176 of file boundingBox.cpp.
Referenced by BoundingBox().
void BoundingBox::getAxis | ( | yarp::sig::Vector & | x, |
yarp::sig::Vector & | y, | ||
yarp::sig::Vector & | z | ||
) |
Provide the principal axes of the bounding box.
x | first principal axis of the bounding box. |
y | second principal axis of the bounding box. |
z | third principal axis of the bounding box. |
Definition at line 119 of file boundingBox.cpp.
Referenced by BoundingBox().
iCub::data3D::Box3D BoundingBox::getBoundingBox | ( | ) |
Return the Box3D structure underline the bounding box.
Definition at line 34 of file boundingBox.cpp.
Referenced by BoundingBox().
Vector BoundingBox::getCenter | ( | ) |
Return the center of the bounding box.
Definition at line 155 of file boundingBox.cpp.
Referenced by BoundingBox().
std::vector< iCub::data3D::PointXYZ > BoundingBox::getCorners | ( | ) |
Return the corners of the Box3D structure.
Definition at line 47 of file boundingBox.cpp.
Referenced by BoundingBox().
Vector BoundingBox::getDim | ( | ) |
Return the dimension of the principal axes, in the same order of the getAxis method.
Definition at line 139 of file boundingBox.cpp.
Referenced by BoundingBox().
yarp::sig::Matrix BoundingBox::getOrientation | ( | ) |
Return the orientation of the Box3D structure.
Definition at line 59 of file boundingBox.cpp.
Referenced by BoundingBox(), and iCub::data3D::MinimumBoundingBox::getMinimumBoundingBox().
void BoundingBox::setBoundingBox | ( | const iCub::data3D::Box3D & | boundingBox | ) |
Set a Box3D inside the BoundingBox wrapper.
boundingBox | the set Box3D object. |
Definition at line 40 of file boundingBox.cpp.
Referenced by BoundingBox().
void BoundingBox::setCorners | ( | const std::vector< iCub::data3D::PointXYZ > & | corners | ) |
Set the corners of the bounding box.
corners | a vector of the 8 corners of the bounding box in 3D. |
Definition at line 53 of file boundingBox.cpp.
Referenced by BoundingBox(), and iCub::data3D::MinimumBoundingBox::getMinimumBoundingBox().
void BoundingBox::setOrientation | ( | const yarp::sig::Matrix & | orientation | ) |
Modify the orientation of the bounding box.
orientation | the orientation matrix of the bounding box. |
Definition at line 65 of file boundingBox.cpp.
Referenced by BoundingBox(), and iCub::data3D::MinimumBoundingBox::getMinimumBoundingBox().