<!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.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi vtk users!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use vtk with Java and I use a
vtkPanel.</FONT></DIV>
<DIV><FONT face=Arial size=2>In the renderer of this vtkPanel I insert a
surface with a texture.</FONT></DIV>
<DIV><FONT face=Arial size=2>In an other thread, I update this texture every
time.</FONT></DIV>
<DIV><FONT face=Arial size=2>This program run correctly with a good frame rate
</FONT></DIV>
<DIV><FONT face=Arial size=2>but some minutes ago, the surface disappear of the
view.</FONT></DIV>
<DIV><FONT face=Arial size=2>I notice an increase of the memory use by the
program </FONT></DIV>
<DIV><FONT face=Arial size=2>when the function "Render" of the vtkPanel are
call.</FONT></DIV>
<DIV><FONT face=Arial size=2>That is the problem?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't understand what occurs and why the texture
disappear?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is the source of my Thread :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>public class UpdateImage extends Thread
<BR>{<BR> <BR> private view3D view; //view3D extends
vtkPanel<BR> public boolean running=true;<BR> public boolean
visu=true;<BR> <BR> public UpdateImage(View3D _view)<BR>
{<BR> view = _view;<BR> }<BR> <BR> public
void run()<BR> { <BR>
try<BR> { <BR>
while(running)<BR>
{<BR> for (int isurf = 0;
isurf<vue.getSurfaces().size();
isurf++)<BR>
{<BR>
((Surface)view.getSurfaces().get(isurf)).updateTabImage();<BR>
}<BR>
SwingUtilities.invokeAndWait(new
Runnable()<BR>
{<BR> public
void run() </FONT></DIV>
<DIV><FONT face=Arial
size=2> {<BR>
view.Render();<BR>
}<BR> });</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT><FONT
face=Arial size=2>}<BR> }<BR> catch
(Exception e){<BR>
System.out.println("Exception="+e);<BR> }<BR>
}<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for your help!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Antoine</FONT></DIV></BODY></HTML>