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

Method removeAllShapes

visualization/src/pcl_visualizer.cpp:984–1006  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

982
983/////////////////////////////////////////////////////////////////////////////////////////////
984bool
985pcl::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/////////////////////////////////////////////////////////////////////////////////////////////
1009bool

Callers 9

updateViewerFunction · 0.80
updateFunction · 0.80
getDatasetAndLabelsMethod · 0.80
processMethod · 0.80
runFunction · 0.80
runFunction · 0.80
drawCorrespondencesFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected