/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 283 | |
| 284 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 285 | void |
| 286 | pcl::visualization::PCLPainter2D::spinOnce( const int spin_time ) |
| 287 | { |
| 288 | //apply current states |
| 289 | view_->GetRenderer ()->SetBackground (bkg_color_[0], bkg_color_[1], bkg_color_[2]); |
| 290 | view_->GetRenderWindow ()->SetSize (win_width_, win_height_); |
| 291 | |
| 292 | //start timer to spin |
| 293 | if (!view_->GetInteractor ()->GetEnabled ()) |
| 294 | { |
| 295 | view_->GetInteractor ()->Initialize (); |
| 296 | view_->GetInteractor ()->AddObserver ( vtkCommand::TimerEvent, exit_loop_timer_ ); |
| 297 | } |
| 298 | exit_loop_timer_->right_timer_id = view_->GetInteractor()->CreateOneShotTimer( spin_time ); |
| 299 | |
| 300 | //start spinning |
| 301 | this->Update(); |
| 302 | view_->GetRenderer ()->Render (); |
| 303 | view_->GetInteractor()->Start(); |
| 304 | } |
| 305 | |
| 306 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 307 | void |
nothing calls this directly
no test coverage detected