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

Method removePointCloud

visualization/src/pcl_visualizer.cpp:847–864  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

845
846/////////////////////////////////////////////////////////////////////////////////////////////
847bool
848pcl::visualization::PCLVisualizer::removePointCloud (const std::string &id, int viewport)
849{
850 // Check to see if the given ID entry exists
851 auto am_it = cloud_actor_map_->find (id);
852
853 if (am_it == cloud_actor_map_->end ())
854 return (false);
855
856 // Remove it from all renderers
857 if (removeActorFromRenderer (am_it->second.actor, viewport))
858 {
859 // Remove the pointer/ID pair to the global actor map
860 cloud_actor_map_->erase (am_it);
861 return (true);
862 }
863 return (false);
864}
865
866/////////////////////////////////////////////////////////////////////////////////////////////
867bool

Callers 15

clearViewMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
runDisplayMethod · 0.80
timeoutSlotMethod · 0.80
viz_cbMethod · 0.80
viz_cbMethod · 0.80
viz_cbMethod · 0.80
viz_cbMethod · 0.80
keyboard_callbackMethod · 0.80

Calls 3

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by 2

mainFunction · 0.64
mainFunction · 0.64