#include <cloud_item.h>
Public Member Functions | |
virtual CloudItem * | clone () const |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | CloudItem (const QString name, const pcl::PCLPointCloud2::Ptr cloud_ptr, const Eigen::Vector4f &origin=Eigen::Vector4f(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf(), bool make_templated_cloud=true) |
CloudItem (const CloudItem &to_copy) | |
virtual QVariant | data (int role=Qt::UserRole+1) const |
virtual data getter which calls QStandardItem::data; used to create template cloud if not created yet WARNING : This function modifies "this" - it sets up the templated type if you request one when it doesn't exist yet! It had to remain const because it is virtual, and we need to keep run-time polymorphism | |
int | getPointType () const |
virtual bool | isSanitized () const |
virtual void | paintView (boost::shared_ptr< pcl::visualization::PCLVisualizer > vis) const |
Paint View function - puts this cloud item into a PCLVisualizer object. | |
template<typename PointT > | |
void | printNumPoints () const |
virtual void | removeFromView (boost::shared_ptr< pcl::visualization::PCLVisualizer > vis) const |
Remove from View function - removes this cloud from a PCLVisualizer object. | |
virtual void | setData (const QVariant &value, int role=Qt::UserRole+1) |
Virtual data setter which calls QStandardItem::data; used to ensure that template_cloud_set_ is set when a templated cloud is added. | |
void | setTemplateCloudFromBlob () |
Initializes and stores a templated PointCloud object with point type matching the blob. | |
virtual int | type () const |
virtual | ~CloudItem () |
Static Public Member Functions | |
template<typename PointT > | |
static CloudItem * | createCloudItemFromTemplate (const QString name, typename PointCloud< PointT >::Ptr cloud_ptr) |
This creates a CloudItem from a templated cloud type. | |
Private Member Functions | |
bool | checkIfFinite () |
template<typename PointT > | |
void | setPointType () |
Private Attributes | |
pcl::PCLPointCloud2::Ptr | cloud_blob_ptr_ |
ColorHandler::ConstPtr | color_handler_ |
GeometryHandler::ConstPtr | geometry_handler_ |
bool | is_sanitized_ |
Eigen::Quaternionf | orientation_ |
Eigen::Vector4f | origin_ |
int | point_type_ |
bool | template_cloud_set_ |
Definition at line 66 of file cloud_item.h.
pcl::cloud_composer::CloudItem::CloudItem | ( | const QString | name, |
const pcl::PCLPointCloud2::Ptr | cloud_ptr, | ||
const Eigen::Vector4f & | origin = Eigen::Vector4f () , |
||
const Eigen::Quaternionf & | orientation = Eigen::Quaternionf () , |
||
bool | make_templated_cloud = true |
||
) |
Definition at line 10 of file cloud_item.cpp.
pcl::cloud_composer::CloudItem::CloudItem | ( | const CloudItem & | to_copy | ) |
pcl::cloud_composer::CloudItem::~CloudItem | ( | ) | [virtual] |
Definition at line 69 of file cloud_item.cpp.
bool pcl::cloud_composer::CloudItem::checkIfFinite | ( | ) | [private] |
Definition at line 192 of file cloud_item.cpp.
pcl::cloud_composer::CloudItem * pcl::cloud_composer::CloudItem::clone | ( | ) | const [virtual] |
Reimplemented from pcl::cloud_composer::CloudComposerItem.
Definition at line 57 of file cloud_item.cpp.
pcl::cloud_composer::CloudItem * pcl::cloud_composer::CloudItem::createCloudItemFromTemplate | ( | const QString | name, |
typename PointCloud< PointT >::Ptr | cloud_ptr | ||
) | [static] |
This creates a CloudItem from a templated cloud type.
Definition at line 68 of file cloud_item.hpp.
QVariant pcl::cloud_composer::CloudItem::data | ( | int | role = Qt::UserRole +1 | ) | const [virtual] |
virtual data getter which calls QStandardItem::data; used to create template cloud if not created yet WARNING : This function modifies "this" - it sets up the templated type if you request one when it doesn't exist yet! It had to remain const because it is virtual, and we need to keep run-time polymorphism
Definition at line 91 of file cloud_item.cpp.
int pcl::cloud_composer::CloudItem::getPointType | ( | ) | const [inline] |
Definition at line 118 of file cloud_item.h.
virtual bool pcl::cloud_composer::CloudItem::isSanitized | ( | ) | const [inline, virtual] |
Reimplemented from pcl::cloud_composer::CloudComposerItem.
Definition at line 124 of file cloud_item.h.
void pcl::cloud_composer::CloudItem::paintView | ( | boost::shared_ptr< pcl::visualization::PCLVisualizer > | vis | ) | const [virtual] |
Paint View function - puts this cloud item into a PCLVisualizer object.
Reimplemented from pcl::cloud_composer::CloudComposerItem.
Definition at line 76 of file cloud_item.cpp.
void pcl::cloud_composer::CloudItem::printNumPoints | ( | ) | const |
Definition at line 46 of file cloud_item.hpp.
void pcl::cloud_composer::CloudItem::removeFromView | ( | boost::shared_ptr< pcl::visualization::PCLVisualizer > | vis | ) | const [virtual] |
Remove from View function - removes this cloud from a PCLVisualizer object.
Reimplemented from pcl::cloud_composer::CloudComposerItem.
Definition at line 85 of file cloud_item.cpp.
void pcl::cloud_composer::CloudItem::setData | ( | const QVariant & | value, |
int | role = Qt::UserRole + 1 |
||
) | [virtual] |
Virtual data setter which calls QStandardItem::data; used to ensure that template_cloud_set_ is set when a templated cloud is added.
Definition at line 103 of file cloud_item.cpp.
void pcl::cloud_composer::CloudItem::setPointType< PointXYZRGBA > | ( | ) | [inline, private] |
Definition at line 149 of file cloud_item.h.
Initializes and stores a templated PointCloud object with point type matching the blob.
Definition at line 112 of file cloud_item.cpp.
virtual int pcl::cloud_composer::CloudItem::type | ( | ) | const [inline, virtual] |
Reimplemented from pcl::cloud_composer::CloudComposerItem.
Definition at line 100 of file cloud_item.h.
Definition at line 128 of file cloud_item.h.
Definition at line 129 of file cloud_item.h.
Definition at line 130 of file cloud_item.h.
bool pcl::cloud_composer::CloudItem::is_sanitized_ [private] |
Definition at line 145 of file cloud_item.h.
Eigen::Quaternionf pcl::cloud_composer::CloudItem::orientation_ [private] |
Definition at line 136 of file cloud_item.h.
Eigen::Vector4f pcl::cloud_composer::CloudItem::origin_ [private] |
Definition at line 135 of file cloud_item.h.
int pcl::cloud_composer::CloudItem::point_type_ [private] |
Definition at line 139 of file cloud_item.h.
bool pcl::cloud_composer::CloudItem::template_cloud_set_ [private] |
Definition at line 140 of file cloud_item.h.