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

Method spinOnce

visualization/src/image_viewer.cpp:364–384  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

362
363//////////////////////////////////////////////////////////////////////////////////////////
364void
365pcl::visualization::ImageViewer::spinOnce (int time, bool force_redraw)
366{
367 if (force_redraw)
368 {
369 render ();
370 //interactor_->Render ();
371 }
372
373 if (time <= 0)
374 time = 1;
375
376 DO_EVERY (1.0 / interactor_->GetDesiredUpdateRate (),
377 exit_main_loop_timer_callback_->right_timer_id = interactor_->CreateRepeatingTimer (time);
378 interactor_->Start ();
379 interactor_->DestroyTimer (exit_main_loop_timer_callback_->right_timer_id);
380 );
381 for(auto &i : image_data_)
382 delete [] i;
383 image_data_.clear ();
384}
385
386//////////////////////////////////////////////////////////////////////////////////////////
387boost::signals2::connection

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected