<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a fundamental problem on event 
queues.</FONT>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm trying to interrupt the renderer when a 
rendering job takes too long and I want to perform a mouse drag for rotating a 
volume. The method described in the vtk users guide makes use of 
AbortCheckEvents that are sent by the renderWindow during rendering. These 
events are observed and on all these events you have to check for pending mouse 
events with the method GetEventPending of the class vtkRenderWindow. If there 
are&nbsp; pending events my code aborts the render process by calling the 
SetAbortRender(1) of the class vtkRenderWindow.</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>This sounds all very nice, but it doesn't 
work on a </FONT><FONT size=2>MS Windows XP OS. There are simply no events 
pending.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I tried the same on an&nbsp; X-Windows on Irix and 
there it works fine, there are pending events and thus I'm able to abort the 
render process whenever I perform a mouse drag.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is there a fundamental difference in the way MS 
Windows and X-Windows&nbsp;pass events to Java's VM event queue?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This problem is probably not connected with Java, 
we tried the same code in C++ on both operating systems, on 
X-Windows</FONT>&nbsp;<FONT face=Arial size=2>we got pending events whereas on 
MS Windows we got none.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Last but not least I make use of level-of-detail 
actors (vtkLODProp3D), mouse drags are performed with a desired update rate of 
10 while a mouse release sets the desired update back to 0.01 so the 
renderWindow can render its highest resolution LOD.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=Arial size=2>With king regards,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Arjen Ricksen<BR>&nbsp;<BR>employee 
COS/SAVG<BR>Philips Research Laboratories<BR>Prof. Holstlaan 4<BR>5656 AA 
Eindhoven, The Netherlands<BR>Building: WO P 46<BR>Mailbox: WO 01<BR>Tel : 
+31-40-27 44357&nbsp;&nbsp;&nbsp; <BR>Fax: +31-40-27 44675<BR>Mailto: <A 
href="mailto:ricksen@natlab.research.philips.com">ricksen@natlab.research.philips.com</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>