]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInteractorStyleBaseView.cxx
index 3a1918bb45bdce8289ebb1ba84e02d8a3ac6cd73..89aee7044a585291e338a9306db000adccbc0f12 100644 (file)
@@ -17,6 +17,9 @@ vtkInteractorStyleBaseView::vtkInteractorStyleBaseView()
        _refresh_waiting                = false;
        _parent_refresh_waiting = false;
        _blockRefresh                   = false;
+       
+       //EED27Juillet2011
+       SetMouseWheelMotionFactor(0.5);
 }
 //---------------------------------------------------------------------------
 vtkInteractorStyleBaseView::~vtkInteractorStyleBaseView()
@@ -76,10 +79,28 @@ void vtkInteractorStyleBaseView::OnRightDClick()  // virtual
        CallLstInteractorStyleMaracas( 12 );
 }
 //---------------------------------------------------------------------------
+//EED27Juillet2011
 void vtkInteractorStyleBaseView::OnMouseWheel()  // virtual
 {
+       printf("EED vtkInteractorStyleBaseView::OnMouseWheel\n");
        CallLstInteractorStyleMaracas( 14 );
 }
+
+void  vtkInteractorStyleBaseView::OnMouseWheelForward()  // virtual
+{
+       printf("EED.. vtkInteractorStyleBaseView::OnMouseWheelForward\n");
+       CallLstInteractorStyleMaracas( 15 );
+}
+
+void vtkInteractorStyleBaseView::OnMouseWheelBackward() // virtual
+{
+       printf("EED.. vtkInteractorStyleBaseView::OnMouseWheelBackward\n");
+       CallLstInteractorStyleMaracas( 16 );
+}
+
+
+
+
 //---------------------------------------------------------------------------
 void vtkInteractorStyleBaseView::AddInteractorStyleMaracas(InteractorStyleMaracas* interactorStyleMaracas)
 {
@@ -215,6 +236,8 @@ void vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(int type)
                                        i=size;
                                }
                        }
+                       
+                       //EED ?????  27Juillet2011      
                        if (type==14)
                        {  // OnMouseWheel
                                if (intStyMar->OnMouseWheel()==false)
@@ -222,6 +245,22 @@ void vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(int type)
                                        i=size;
                                }
                        }
+                       if (type==15)
+                       {  // OnMouseWheelForward
+                               if (intStyMar->OnMouseWheelForward()==false)
+                               {
+                                       i=size;
+                               }
+                       }
+                       if (type==16)
+                       {  // OnMouseWheelBackward
+                               if (intStyMar->OnMouseWheelBackward()==false)
+                               {
+                                       i=size;
+                               }
+                       }
+                       
+                       
                } // if active
        } // for