<div dir="ltr">Ok gotcha, is there a way to get into the VTK loop and modify stuff or once you start the interactor you're stuck with it until you close the render window?</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 1, 2014 at 9:53 AM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do you have a "main"?<br>
<br>
Are you calling "Application::Run(form);"?<br>
<br>
WinForms will run a message loop for you if you call the Application Run method. In that sense, it does exactly the same thing conceptually as vtkRenderWindowInteractor::<u></u>Start.<br>
<br>
The message loop usually looks something like this, if you look at the source code for one:<br>
<br>
while (GetMessage(&msg, ...))<br>
{<br>
TranslateMessage(&msg);<br>
DispatchMessage(&msg);<br>
}<br>
<br>
<a href="http://en.wikipedia.org/wiki/Message_loop_in_Microsoft_Windows" target="_blank">http://en.wikipedia.org/wiki/<u></u>Message_loop_in_Microsoft_<u></u>Windows</a><br>
<br>
<br>
HTH,<br>
David<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
-----Original Message-----<br>
From: Matias Montroull <<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>><br>
To: David Cole <<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>><br>
Cc: vtkusers <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Sent: Mon, Mar 31, 2014 8:56 pm<br>
Subject: Re: [vtkusers] ActiViz | vtkRenderWindowInteractor Start event<br>
<br>
<br>
Hi David, thanks for the response.<br>
<br>
<br>
I'm using this into a Windows Form Application. What would be my message loop? I'm not quite sure what that means, can you explain a bit more?<br>
<br>
<br>
Thanks!<br>
<br>
<br>
<br>
<br>
<br>
On Sat, Mar 29, 2014 at 1:59 PM, David Cole <<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>> wrote:<br>
<br>
iren.Start(); runs a message loop, and doesn't exit until you as a user exit that window (either press the 'q' key, or close the window)<br>
<br>
If you don't want that because you're building this into an application where you already have your own message loop, then simply don't call iren.Start();...<br>
<br>
Instead, call "renwin.Render();" to show the window and render its contents. If you're running in the context of a WinForms application, or something like it, then your message loop should suffice to cause events to be processed for the render window.<br>
<br>
<br>
HTH,<br>
David C.<br>
<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>