[vtkusers] check for pending tk events

David Gobbi dgobbi at imaging.robarts.ca
Tue Jul 23 23:32:25 EDT 2002


On Wed, 24 Jul 2002 hhiraki at lab.nig.ac.jp wrote:

> On Tue, 23 Jul 2002 12:00:48 -0400 (EDT), David Gobbi wrote:
> > Hi All,
> >
> > I'm looking for a way to abort a render if a user interacts with the
> > window, and the easiest way seems to be for the window's AbortCheck
> > method to check if there are any tk events pending.
> >
> > Is there a way, either in raw tk or within the vtkTkRenderWidget, to
> > check if there are events pending?  I've searched the tk documentation
> > with no luck.
> >
>
> How about vtkRenderWindow::GetEventPending()? Some Tcl examples
> in VTK use this method.

This method doesn't seem to work with when the window is from a
vtkTkRenderWidget, or at least not in the examples I've tried.
It might have to do with how the window is parented or how the
vtkTkRenderWidget deals with events.

 - David




More information about the vtkusers mailing list