[vtkusers] Java threading problem

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Fri Dec 28 13:32:16 EST 2001


Be careful that your call to Panel->Render isn't triggering a windows paint
message (or similar) which is then processed by the main application thread
and not your "special" thread.

This may be wide of the mark, but it caught me out when implementing similar
background threading/painting stuff

JB

----- Original Message -----
From: <hong at parc.xerox.com>
To: <vtkusers at public.kitware.com>
Cc: <hong at parc.xerox.com>
Sent: Thursday, December 27, 2001 9:08 PM
Subject: [vtkusers] Java threading problem


>
> I am writing an application using Java 1.3.1 & VTK 3.2 on Windows 2K and
> run into a threading problem. I wonder if someone out there can help me.
>
> Basically, when a certain key is pressed, I start a thread from my
vtkPanel.
> This thread updates a portion of my 3D scene (for example, rotating my 3D
> objects by a certain degree), and then calls Render() of my vtkPanel. When
> the key is released, the thread will terminate.
>
> The problem is that the rendering that I request in the run() method of
the
> thread doesn't seem to be working at all. More specifically, while the
thread
> is running, I don't see the image being updated, although it should be. I
wonder
> why this is happening and whether there is some way to overcome this
problem.
>
> Any helps would be greatly appreciated.
>
> Lichan
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list