[vtkusers] Change default mouse buttons

mirko heuegger mheuegger at gmail.com
Thu May 23 03:20:15 EDT 2013


Hello!

Is it possible that you send a minimal, compilable, self-contained example?


regards
mirko


On Thu, May 23, 2013 at 8:36 AM, Max <smapersmaper at gmail.com> wrote:

> Hi mirko and thank you for your reply,
> I did exactly what you wrote and still no luck.
> the events are called but no dolly is performed.
> In fact, after i change the interactor style, no handling events is
> performs, no zoom, dolly etc, nothing...
>
>
> Code fragment:
> vtkRenderWindowInteractor inter = vtkRenderWindowInteractor.New();//
> renderWindow.GetInteractor();
>
>                  renderWindow.SetInteractor(inter);
>
>                  interactorStyle = vtkInteractorStyle.New();//
> inter.GetInteractorStyle();
>                  inter.SetInteractorStyle(interactorStyle);
>                  interactorStyle.LeftButtonPressEvt += new
> vtkObject.vtkObjectEventHandler(rightButtonPressVtkEvt);
>                  interactorStyle.LeftButtonReleaseEvt += new
> vtkObject.vtkObjectEventHandler(rightButtonReleaseVtkEvt);
>
>                  interactorStyle.SetInteractor(inter);
>
> Maybe its a bug?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Change-default-mouse-buttons-tp5720853p5720897.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Real programmers don't document; if it was
hard to write, it should be hard to understand.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130523/73ffb75f/attachment.htm>


More information about the vtkusers mailing list