| 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 |
nothing calls this directly
no test coverage detected