Thanks for sharing the solution...<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 5:32 AM, Dario Veneziani <span dir="ltr">&lt;<a href="mailto:dario@netfarm.it" target="_blank">dario@netfarm.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 07/11/2012 11.20, Dario Veneziani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I&#39;m embeddeding a vtkPanel into a java swing based application.<br>
The parent widget is a JTabbedPane.<br>
My code captures mouseMoved to pick the actor hovered by the mouse pointer.<br>
I&#39;ve looked a bit in the pick code and vtk asks actor if they need to render.<br>
The problem is I get mouseMoved even when mouse is not moved<br>
(I&#39;ve tried an action with a menu using keyboard).<br>
If the render is not done the pick will fail while trying to render (ChoosePixelFormat)<br>
<br>
I&#39;ve enabled vtk message confirmation and took a stacktrace with process explorer<br>
<br>
vtkRendering.dll!<u></u>vtkWin32OpenGLRenderWindow::<u></u>SetupPixelFormat+0x44d<br>
vtkRendering.dll!<u></u>vtkWin32OpenGLRenderWindow::<u></u>CreateAWindow+0x38a<br>
vtkRendering.dll!<u></u>vtkWin32OpenGLRenderWindow::<u></u>WindowInitialize+0x71<br>
vtkRendering.dll!<u></u>vtkRenderWindow::DoAARender+<u></u>0x389<br>
vtkRendering.dll!<u></u>vtkRenderWindow::Render+0x326<br>
vtkRenderingJava.dll!Java_vtk_<u></u>vtkLineIntegralConvolution2D_<u></u>GetMagnificationMinValue_133+<u></u>0x1f <br>
<br>
<br>
I&#39;ve got two different errors but both are related to actor picking, I may add some code to avoid picking<br>
if the vtkPanel is not ready to pick, but looks like there is no way to known if I can pick, at least from java<br>
<br>
Regards,<br>
<br>
Dario<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote>
<br></div></div>
Problem solved by testing isWindowSet() before picking.<div class="HOEnZb"><div class="h5"><br>
<br>
Dario<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>