<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=573455811-12032004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<FONT face=Arial size=2>I have been trying to run my vtk+java application on HP 
UX 11.0. Following are my observation.</FONT></SPAN></DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial size=2>I built VTK 4.2 
release on HP UX using HP's aCC compiler. But there was lot of flickering while 
rendering the 3d view&nbsp;to a extent that my application was unusable. So I 
dug through the VTK mail archives and I found that few python users had similar 
problems. The work around was to remove the SetWindowId function and replace it 
with SetParentId. Hence I made the following changes to 
vtkJavaAwt.h</FONT></SPAN></DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<U>ORIGINAL</U></FONT></SPAN></DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2>JAWT_X11DrawingSurfaceInfo* dsi_x11;<BR>dsi_x11 = 
(JAWT_X11DrawingSurfaceInfo*)dsi-&gt;platformInfo;<BR>temp0-&gt;SetDisplayId((void 
*)dsi_x11-&gt;display);<BR>temp0-&gt;SetWindowId((void 
*)dsi_x11-&gt;drawable);<BR>temp0-&gt;SetParentId((void 
*)dsi_x11-&gt;display);</FONT></SPAN></DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<U>MODIFIED</U></DIV></FONT></SPAN>
<DIV><SPAN class=573455811-12032004><FONT face=Arial size=2>
<DIV><SPAN class=573455811-12032004><FONT face=Arial 
size=2>JAWT_X11DrawingSurfaceInfo* dsi_x11;<BR>dsi_x11 = 
(JAWT_X11DrawingSurfaceInfo*)dsi-&gt;platformInfo;<BR>temp0-&gt;SetDisplayId((void 
*)dsi_x11-&gt;display);<BR><FONT color=#ff0000>//temp0-&gt;SetWindowId((void 
*)dsi_x11-&gt;drawable);<BR></FONT>temp0-&gt;SetParentId((void 
*)dsi_x11-&gt;<FONT 
color=#ff0000>drawable</FONT>);</FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=573455811-12032004>I could build the 
code with this modification and the welcome relief was that there&nbsp;was no 
flickering with this set of binaries. But I have a new problem now. When ever my 
application regains focus after being overlapped by some other window, the 
vtkCanvas does not get repainted (it remains black). It will remain in this 
state until a mouseClick or mousePress event is invoked on it. So I added 
WindowStateListener to my JFrame and forcefully called Render() on vtkCanvas 
whenever my application regained focus. The result was some what satisfactory. 
Now I have a new problem. Suppose through my application I invoke a dialog which 
contains a vtkCanvas, when the dialog is disposed my application freezes with a 
black 3d window. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=573455811-12032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=573455811-12032004>I tried 
TestInternalFrames demo program and when I moved one internal frame over another 
the application froze.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=573455811-12032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=573455811-12032004>Is anybody using vtk 
with java on HP UX? Can you please help me. My application developent is totally 
hampered by this problem and despite my best efforts I have not been able to get 
a workaround.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=573455811-12032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=573455811-12032004>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=573455811-12032004></SPAN></FONT><FONT 
face=Arial size=2><SPAN class=573455811-12032004>Shyam</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=573455811-12032004></SPAN></FONT>&nbsp;</DIV>
<DIV><U><FONT color=#333399></FONT></U>&nbsp;</DIV>
<DIV><FONT color=#333399><U>Disclaimer: </U></DIV>
<DIV align=left>
<P><U>This electronic message and all attachments contain information from 
QuEST, which may be confidential or otherwise protected from disclosure. The 
information is intended for the addressee only. If you are not the addressee, 
any disclosure, copy, distribution or use of the contents of this message is 
prohibited. If you have received this electronic message in error, please notify 
the sender immediately and destroy the message.</U></P></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>