]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractorPlus.cxx
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVTKRenderWindowInteractorPlus.cxx
index ecf26846b0d61c3b7fee0754c10c97af1b1ecce5..3b67abc55064a0fff93fc7f7bc6bfc9ab79f11fc 100644 (file)
@@ -71,7 +71,26 @@ void wxVTKRenderWindowInteractorPlus::OnMouseWheel( wxMouseEvent& event )
                 
        _wxvtkbaseview->GetInteractorStyleBaseView()->OnMouseWheel();
        */
-       ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnMouseWheel();
+       
+       
+//EED ????  this is just a maracasvisu EED old mechanism to be erased ..
+       ((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();
+    }
+       
+       
 }