MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / clone

Method clone

apps/cloud_composer/src/items/cloud_item.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57pcl::cloud_composer::CloudItem*
58pcl::cloud_composer::CloudItem::clone () const
59{
60 pcl::PCLPointCloud2::Ptr cloud_copy (new pcl::PCLPointCloud2 (*cloud_blob_ptr_));
61 //Vector4f and Quaternionf do deep copies using constructor
62 CloudItem* new_item = new CloudItem (this->text (), cloud_copy, origin_,orientation_);
63
64 PropertiesModel* new_item_properties = new_item->getPropertiesModel ();
65 new_item_properties->copyProperties (properties_);
66
67 return new_item;
68}
69
70void
71pcl::cloud_composer::CloudItem::paintView (pcl::visualization::PCLVisualizer::Ptr vis) const

Callers

nothing calls this directly

Calls 2

getPropertiesModelMethod · 0.80
copyPropertiesMethod · 0.80

Tested by

no test coverage detected