[vtkusers] Wait cursor during filter execution using vtkJava

J.A. Lee jeff at cdnorthamerica.com
Mon Aug 20 17:43:32 EDT 2001


Better yet, you could use SetStartMethod and SetEndMethod instead of SetProgressMethod, like
vtkGeometryFilter gf;
gf.SetStartMethod(this,"startProgress");
gf.SetEndMethod(this,"endProgress");
protected void startProgress(){setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
protected void endProgress(){setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));}


"J.A. Lee" wrote:

> Mabey combination of SetProgressMethod and
> setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)).  The method you feed
> SetProgressMethod will get executed as many times as the filter executes, so you could set the
> cursor to wait when GetProgress is 0 and then set it to default when GetProgress is 100 or
> something like that.
> -Jeff
>
> Ben Held wrote:
>
> > Is there a way to force a wait cursor to be displayed when the vtk filter
> > chain is executed using vtkJava?  I am familiar with how to turn on a wait
> > cursor in java, but even if I call:
> >
> > waitCursorStart();
> > mapper.GetInput().Update();
> > waitCursorEnd();
> >
> > Where waitCursorStart and waitCursorEnd are my functions.
> >
> > I don't see a wait cursor - the vtkframe is just white during the update.
> >
> > Ben
> >
> > Ben L. Held
> > Simulation Technology & Applied Research, Inc.
> > 11520 N. Port Washington Rd.
> > Suite 101B
> > Mequon, WI  53092
> > Phone: (262) 240-0291 x101
> > FAX: (262) 240-0294
> > e-mail: ben.held at staarinc.com
> > web: http://www.staarinc.com
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

--
J.A. Lee
Software Engineer
Computational Dynamics North America
3 Schoolhouse Lane
Etna NH, 03750
ph: 603-643-9993 x109, fax: 603-643-9994


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010820/77b41db8/attachment.htm>


More information about the vtkusers mailing list