[vtkusers] Viewing vtkImageData Updated using QThread

Alex Southern mrapsouthern at gmail.com
Mon Oct 25 09:10:35 EDT 2010


Hi,

Has anyone tried this?

I have a Qthread which is iteratively updating some vtkpolydata.

I start the thread running. e.g.

myThread.start();

Then I try to view the vtkimageData...

while (myThread.isRunning() == true)
{
        Pressure->Modified();  //Pressure is a vtkFloatArray which is 
the input to my imageData
        iren->Render();
}

This doesn't work, It shows the result of the very last iteration in 
myThread.

Any suggestions are welcome.
Thanks
Alex





More information about the vtkusers mailing list