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

Method removeLayer

visualization/src/image_viewer.cpp:570–582  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

568
569///////////////////////////////////////////////////////////////////////////////////////////
570void
571pcl::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//////////////////////////////////////////////////////////////////////////////////////////
585bool

Callers 7

runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
pp_callbackMethod · 0.80
pp_callbackMethod · 0.80

Calls 4

LayerComparatorClass · 0.85
eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected