[vtkusers] Multiple renderwindows/interactor concurrently?
Emiliano Beronich
emiliano at veccsa.com
Tue Jul 6 14:21:00 EDT 2004
Hi Arnold,
On Windows, instead of using a thread for every renderwindow, you can
use SetInstallMessage() to prevent the Message callback set by the
interactor and then let your own method to manage every message
apropiately. This method is supposed to pass the message to the
interactor. In this case, you don't need to call Start. Maybe you can
try an approach like this on Unix but I don't know exactly how you can
do this.
HTH
Emiliano
a.meijster at rc.rug.nl wrote:
>
> Hi all,
>
> I have the following problem. I want to make a vtk
> program in which I want several windows to be opened,
> each with its own interactor. Besides, I want the main
> program to continue computing. How can I do this? It
> appears to me that I can have only one interactor (iren)
> active, since iren->Start() does not return.
> So, I decided to use pthreads, and made the following code.
> This runs only under Unix with X11, but that's fine
> for the time being. The strange thing is that this
> code runs, but sometimes interaction hangs for a while.
> I guess threads are eating eachothers events, or something
> like that.
>
> Does anyone see my error, or has a better solution?
>
> Regards,
>
> Arnold Meijster
>
More information about the vtkusers
mailing list