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

Method pop

visualization/src/cloud_viewer.cpp:67–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 {}
66
67 template <typename Handler> void
68 pop (const Handler &handler)
69 {
70 double psize = 1.0, opacity = 1.0, linesize =1.0;
71 viewer->getPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_LINE_WIDTH, linesize, cloud_name);
72 viewer->getPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_OPACITY, opacity, cloud_name);
73 viewer->getPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_POINT_SIZE, psize, cloud_name);
74
75 if (!viewer->updatePointCloud (cloud, handler, cloud_name))
76 {
77 viewer->addPointCloud (cloud, handler, cloud_name);
78 viewer->resetCameraViewpoint (cloud_name);
79 }
80
81 // viewer->removePointCloud (cloud_name);
82 viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_LINE_WIDTH, linesize, cloud_name);
83 viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_OPACITY, opacity, cloud_name);
84 viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_POINT_SIZE, psize, cloud_name);
85 popped_ = true;
86 }
87
88 void pop () override;
89

Callers

nothing calls this directly

Calls 5

updatePointCloudMethod · 0.80
resetCameraViewpointMethod · 0.80
addPointCloudMethod · 0.45

Tested by

no test coverage detected