[vtkusers] Animation

PsyVis osue80 at bangor.ac.uk
Sun Nov 16 15:49:20 EST 2008

I've put everything inside the edt and lo and behold it works, but now the
stop button is not recognized and if I try and shut the window nothing



Denis Barbier-5 wrote:
> On 2008/11/16 PsyVis wrote:
>> Hello
>> I'm really struggling to find out what I'm doing wrong here, but I'm
>> trying
>> to animate a series of (720) .vtk files. I have a method that changes the
>> timeslice (changes the .vtk file) but the only thing that happens is that
>> it
>> crashes my whole app and the Java virtual machine.
>> Here is the code for the animation method that is run inside a thread
>> when a
>> start button is pressed.
> It's hard to investigate without having a self-contained example, but
> there is
> surely some threading issue.  The changeTimeSlice method uses non-local
> variables, so when Render() is called in the EDT (event dispatching
> thread),
> VTK pipeline may be modified by the main thread.  You can run everything
> in the EDT to avoid threading issues, and if it solves your problem, you
> will
> have to be very careful when moving processing out of the EDT.
> Denis
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

View this message in context: http://www.nabble.com/Animation-tp20524928p20529853.html
Sent from the VTK - Users mailing list archive at Nabble.com.

More information about the vtkusers mailing list