////////////////////////////////////////////////////////////////////////////////////////
| 825 | |
| 826 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 827 | bool |
| 828 | pcl::visualization::PCLVisualizer::removeCoordinateSystem (const std::string& id, int viewport) |
| 829 | { |
| 830 | // Check to see if the given ID entry exists |
| 831 | auto am_it = coordinate_actor_map_->find (id); |
| 832 | |
| 833 | if (am_it == coordinate_actor_map_->end ()) |
| 834 | return (false); |
| 835 | |
| 836 | // Remove it from all renderers |
| 837 | if (removeActorFromRenderer (am_it->second, viewport)) |
| 838 | { |
| 839 | // Remove the ID pair to the global actor map |
| 840 | coordinate_actor_map_->erase (am_it); |
| 841 | return (true); |
| 842 | } |
| 843 | return (false); |
| 844 | } |
| 845 | |
| 846 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 847 | bool |