[vtkusers] vtkInteractorStyle overrides fail to fire!

Harry Simons simonsharry at gmail.com
Tue Oct 3 23:31:02 EDT 2006


Yep, me too.  Frustrated, gave up on this one eventually.

>
> Hello,
>
> I'm trying to implement custom mouse event handling for my 2D (image
> actor) as follows. The image slice shows up fine but my event override
> fails to fire! Anything I'm missing?
>
> Regards,
> A VTK Newbie.
>
>
> class MyInteractorStyle extends vtkInteractorStyle {
>     public void OnLeftButtonDown() {
>         System.out.println("left button pressed");
>     }
> }
>
> // ...
> myIS = new MyInteractorStyle();
> rwi = new vtkRenderWindowInteractor();
> rwi.SetInteractorStyle(myIS);
>
> // ...
> rwi.SetRenderWindow(renderWindow);
> renderWindow.Render();
> rwi.Start();
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061004/27b5d607/attachment.htm>


More information about the vtkusers mailing list