////////////////////////////////////////////////////////////////////////////////////////////////////
| 116 | |
| 117 | ///////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 118 | void |
| 119 | OpenNIPassthrough::timeoutSlot() |
| 120 | { |
| 121 | if (!cloud_pass_) { |
| 122 | std::this_thread::sleep_for(1ms); |
| 123 | return; |
| 124 | } |
| 125 | |
| 126 | CloudPtr temp_cloud; |
| 127 | { |
| 128 | QMutexLocker locker(&mtx_); |
| 129 | temp_cloud.swap(cloud_pass_); |
| 130 | } |
| 131 | // Add to the 3D viewer |
| 132 | if (!vis_->updatePointCloud(temp_cloud, "cloud_pass")) { |
| 133 | vis_->addPointCloud(temp_cloud, "cloud_pass"); |
| 134 | vis_->resetCameraViewpoint("cloud_pass"); |
| 135 | } |
| 136 | FPS_CALC("visualization"); |
| 137 | ui_->qvtk_widget->update(); |
| 138 | } |
| 139 | |
| 140 | void |
| 141 | OpenNIPassthrough::refreshView() |
nothing calls this directly
no test coverage detected