[IGSTK-Users] Threaded IGSTK views with Qt

Cheng, Patrick PCheng at childrensnational.org
Thu Jan 12 11:58:32 EST 2012


Hi Alo,

 

You could consider doing it the other way around: spin off your resource
intensive computation into a separate thread.

 

Take a look at igstkTracker class where we use ITK thread to create a
separate thread to interact with the physical tracker.

 

itk::MultiThreader::Pointer     m_Threader;

m_Threader = itk::MultiThreader::New();

 

m_ThreadID = m_Threader->SpawnThread( TrackingThreadFunction, this );

 

ITK_THREAD_RETURN_TYPE Tracker::TrackingThreadFunction(void*
pInfoStruct)

  { 

  ....

  }

 

Hope this helps,

 

Patrick

 

From: igstk-users-bounces at public.kitware.com
[mailto:igstk-users-bounces at public.kitware.com] On Behalf Of Alo
Mihkelson
Sent: Thursday, January 12, 2012 5:28 AM
To: igstk-users at public.kitware.com
Subject: [IGSTK-Users] Threaded IGSTK views with Qt

 

We're using IGSTK with Qt and would like to move the view rendering to a
separate thread to avoid GUI slowdowns while rendering resource
intensive (low-FPS) scenes. Is there a way to move the views/rendering
out of the main Qt thread?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20120112/b73f98eb/attachment-0001.html>


More information about the IGSTK-Users mailing list