////////////////////////////////////////////////////////////////////////////////////////
| 845 | |
| 846 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 847 | bool |
| 848 | pcl::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 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 867 | bool |