<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Better yet, you could use SetStartMethod and SetEndMethod instead of SetProgressMethod,
like
<br>vtkGeometryFilter gf;
<br>gf.SetStartMethod(this,"startProgress");
<br>gf.SetEndMethod(this,"endProgress");
<br>protected void startProgress(){setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
<br>protected void endProgress(){setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));}
<br>
<p>"J.A. Lee" wrote:
<blockquote TYPE=CITE>Mabey combination of SetProgressMethod and
<br>setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)). The
method you feed
<br>SetProgressMethod will get executed as many times as the filter executes,
so you could set the
<br>cursor to wait when GetProgress is 0 and then set it to default when
GetProgress is 100 or
<br>something like that.
<br>-Jeff
<p>Ben Held wrote:
<p>> Is there a way to force a wait cursor to be displayed when the vtk
filter
<br>> chain is executed using vtkJava? I am familiar with how to
turn on a wait
<br>> cursor in java, but even if I call:
<br>>
<br>> waitCursorStart();
<br>> mapper.GetInput().Update();
<br>> waitCursorEnd();
<br>>
<br>> Where waitCursorStart and waitCursorEnd are my functions.
<br>>
<br>> I don't see a wait cursor - the vtkframe is just white during the
update.
<br>>
<br>> Ben
<br>>
<br>> Ben L. Held
<br>> Simulation Technology & Applied Research, Inc.
<br>> 11520 N. Port Washington Rd.
<br>> Suite 101B
<br>> Mequon, WI 53092
<br>> Phone: (262) 240-0291 x101
<br>> FAX: (262) 240-0294
<br>> e-mail: ben.held@staarinc.com
<br>> web: <a href="http://www.staarinc.com">http://www.staarinc.com</a>
<br>>
<br>> _______________________________________________
<br>> This is the private VTK discussion list.
<br>> Please keep messages on-topic. Check the FAQ at: <<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
<p>_______________________________________________
<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></blockquote>
<pre>--
J.A. Lee
Software Engineer
Computational Dynamics North America
3 Schoolhouse Lane
Etna NH, 03750
ph: 603-643-9993 x109, fax: 603-643-9994</pre>
</html>