<div>hello</div>
<div>&nbsp;</div>
<div>it is tcl code for vtk.</div>
<div>&nbsp;</div>
<div>proc TkCheckAbort {} </div>
<div># proc is for making a function, tkCheckAbort is the function name</div>
<div>#things between{ and&nbsp;} is the function body</div>
<div>{&nbsp;<br>&nbsp; set foo [renWin GetEventPending]</div>
<div># assign foo to be return value of&nbsp; GetEventPending of rewin</div>
<div><br>&nbsp; if {$foo != 0} {renWin SetAbortRender 1}</div>
<div>#it is a if condition</div>
<div><br>}<br>renWin AddObserver AbortCheckEvent {TkCheckAbort}<br>iren AddObserver UserEvent {wm deiconify .vtkInteract}<br>iren Initialize<br><br>wm withdraw .</div>
<div>&nbsp;</div>
<div>you might want to go through some tcl tutorial. it would take you less than 1 hour to get understanding of tcl code.</div>
<div>&nbsp;</div>
<div>cheers</div>
<div>&nbsp;</div>
<div>Yours</div>
<div>&nbsp;</div>
<div>O.Spring</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/3/07, <b class="gmail_sendername">rafael possani</b> &lt;<a href="mailto:gentefinabr@hotmail.com">gentefinabr@hotmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div style="TEXT-ALIGN: left"><br>Hello, folks, I have another doubt.... I work with vtk and java and most vtk examples are in tcl or c++. Well, I would like to know what this means:<br><pre>[code]<br>proc TkCheckAbort {} {
<br>  set foo [renWin GetEventPending]<br>  if {$foo != 0} {renWin SetAbortRender 1}<br>}<br>renWin AddObserver AbortCheckEvent {TkCheckAbort}<br><br>iren AddObserver UserEvent {wm deiconify .vtkInteract}<br>iren Initialize
<br><br>wm withdraw .</pre>[code]<br><br>And how I transform that in Java(the procedure TkCheckAbort I have a little idea, but the others...), thanks for the replies. cya.<br><span class="sg">Rafael<br></span><span class="ad">
<br><br><br></span></div><span class="ad"><br>
<hr>
Receba as últimas notícias do Brasil e do mundo direto no seu Messenger com Alertas MSN! É GRÁTIS! <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://alertas.br.msn.com/" target="_blank">Assine já!</a>
</span></div><span class="ad"></span><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>---------<br><a href="http://www.vislab.cn">www.vislab.cn</a>