[vtkusers] vtkSDI not detecting mouse clicks

Mark Gooding mark.gooding at gmail.com
Mon Feb 20 05:34:20 EST 2006


Hello all,

Whilst I'm not completely new to vtk, this is the first time I've
played with vtk and MFC, so forgive me if I am asking something
basic...

I'm trying to use vtk in an SDI view, and have therefore been looking
at the vtkSDI example. In my application I was hoping to use the
OnContextMenu() function to get a popup menu over the view. However
the vtkSDI does not seem to respond to mouse clicks.

As it stands - if I load a model then the rotation etc works, but on a
double click I do not get the message from vtkSDIView -
AfxMessageBox("You made a double click") - and this OndblClick is not
called at all, instead the WindowInteractor seems to repond to the
click and performs rotations. Am I missing something from the example?

In the archives I found a question about the same problem (Nov 2003)
which linked through to the bug pages of the vtk site - I assumed that
these changes would have been incorporated within the vtk 5.0.0
release by now. Is this correct?

If any one could give me some pointers this would be appreciated.

Cheers,

Mark



More information about the vtkusers mailing list