////////////////////////////////////////////////////////////////////////////////////////
| 982 | |
| 983 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 984 | bool |
| 985 | pcl::visualization::PCLVisualizer::removeAllShapes (int viewport) |
| 986 | { |
| 987 | bool display_lut (style_->lut_enabled_); |
| 988 | style_->lut_enabled_ = false; // Temporally disable LUT to fasten shape removal |
| 989 | |
| 990 | // Check to see if the given ID entry exists |
| 991 | auto am_it = shape_actor_map_->begin (); |
| 992 | while (am_it != shape_actor_map_->end ()) |
| 993 | { |
| 994 | if (removeShape (am_it->first, viewport)) |
| 995 | am_it = shape_actor_map_->begin (); |
| 996 | else |
| 997 | ++am_it; |
| 998 | } |
| 999 | |
| 1000 | if (display_lut) |
| 1001 | { |
| 1002 | style_->lut_enabled_ = true; |
| 1003 | style_->updateLookUpTableDisplay (true); |
| 1004 | } |
| 1005 | return (true); |
| 1006 | } |
| 1007 | |
| 1008 | ///////////////////////////////////////////////////////////////////////////////////////////// |
| 1009 | bool |
no test coverage detected