[vtkusers] Timer Event

Jagan Lakshmipathy jlakshmi at iupui.edu
Sat Jul 13 10:36:08 EDT 2002


Hi,

By asynchronous call I mean a message to the object (that owns the
vtkRenderWindow) from a remote client. So I don't know xInitThread will work
there. BTW I am using VTK/JAVA bundle.

thanks much
-jagan

-----Original Message-----
From: Robert Belleman [mailto:robbel at science.uva.nl]
Sent: Thursday, June 13, 2002 1:08 AM
To: jlakshmi at iupui.edu
Cc: vtkusers at public.kitware.com
Subject: Re: [vtkusers] Timer Event


Jagan,

If by "asynchronous call" you mean that multiple threads access the
X server, try adding a call to XInitThreads() just after the render
window is created.

-- Rob

--
[] Robert Belleman         X  Section Computational Science            []
[] robbel at science.uva.nl  |X| University of Amsterdam, the Netherlands []
[] tel: (+31) 20 525 7510  X  http://www.science.uva.nl/~robbel/       []

> Hi All,
>
> In my application main I have the following code.
>
> main()
> {
>  CompositerServer cs = new CompositerServer();
>
>      cs.reader1 = new vtkTIFFReader();
>      cs.reader1.SetFileName("./Test.tif");
>
>      vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();
>      iren.SetRenderWindow(cs.viewer.GetRenderWindow());
> 		.
> 		.
> 		.
>
>      cs.viewer.Render();
>      iren.Start();
> }
>
> When I set the cs.viewer.SetOutput() and call cs.viewer.Render() in an
> asynchronous call I get an X-Window error. Any help?
>
> thanks much
> -jagan










More information about the vtkusers mailing list