//////////////////////////////////////////////////////////////////////////////////////
| 568 | |
| 569 | /////////////////////////////////////////////////////////////////////////////////////////// |
| 570 | void |
| 571 | pcl::visualization::ImageViewer::removeLayer (const std::string &layer_id) |
| 572 | { |
| 573 | // Check to see if this ID entry already exists (has it been already added to the visualizer?) |
| 574 | auto am_it = std::find_if (layer_map_.begin (), layer_map_.end (), LayerComparator (layer_id)); |
| 575 | if (am_it == layer_map_.end ()) |
| 576 | { |
| 577 | PCL_DEBUG ("[pcl::visualization::ImageViewer::removeLayer] No layer with ID='%s' found.\n", layer_id.c_str ()); |
| 578 | return; |
| 579 | } |
| 580 | ren_->RemoveActor (am_it->actor); |
| 581 | layer_map_.erase (am_it); |
| 582 | } |
| 583 | |
| 584 | ////////////////////////////////////////////////////////////////////////////////////////// |
| 585 | bool |
no test coverage detected