]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractorPlus.cxx
v1.0.3 BUG 1404
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVTKRenderWindowInteractorPlus.cxx
index ecf26846b0d61c3b7fee0754c10c97af1b1ecce5..dc38c19eff1b0db520d56bc7bbb34e7093c4e46c 100644 (file)
@@ -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();
+    }
+       
+       
 }