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

Method spinOnce

visualization/src/pcl_painter2D.cpp:285–304  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

283
284//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
285void
286pcl::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//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
307void

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected