X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVTKRenderWindowInteractorPlus.cxx;h=dc38c19eff1b0db520d56bc7bbb34e7093c4e46c;hb=5380f9e66daf440f27f33bb060e5ae1a646612cd;hp=ecf26846b0d61c3b7fee0754c10c97af1b1ecce5;hpb=a4ee3758aa0477f677fb981e2c4d6e29995e8db8;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractorPlus.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractorPlus.cxx index ecf2684..dc38c19 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractorPlus.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractorPlus.cxx @@ -71,7 +71,21 @@ void wxVTKRenderWindowInteractorPlus::OnMouseWheel( wxMouseEvent& event ) _wxvtkbaseview->GetInteractorStyleBaseView()->OnMouseWheel(); */ - ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnMouseWheel(); + + if(event.GetWheelRotation() > 0) + { + //Send event to VTK + //EED InvokeEvent(vtkCommand::MouseWheelForwardEvent, NULL); + ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnMouseWheelForward(); + } + else + { + //Send event to VTK + //EED InvokeEvent(vtkCommand::MouseWheelBackwardEvent, NULL); + ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnMouseWheelBackward(); + } + + }