]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView2D.cxx
Feature #1606 Add a new entry to ColorLayerImageView to select the fitting mode betwe...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInteractorStyleBaseView2D.cxx
index 5779b98473621548ae693b421875c15acf2c464d..5971990bd1adda41d4618b7da269478202d8d5bb 100644 (file)
@@ -49,7 +49,6 @@ void  vtkInteractorStyleBaseView2D::OnRightButtonDown()  // virtual
        if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) ){
                this->vtkInteractorStyleImage::OnRightButtonDown();
        }
-
 }
 
 //---------------------------------------------------------------------------
@@ -102,3 +101,24 @@ void vtkInteractorStyleBaseView2D::OnMiddleButtonUp () // virtual
        }
 }
 
+//---------------------------------------------------------------------------
+void vtkInteractorStyleBaseView2D::OnMouseWheelForward () // virtual
+{
+       vtkInteractorStyleBaseView::OnMouseWheelForward();      
+       if ((GetInteractor()->GetControlKey()==0) || (GetInteractor()->GetShiftKey()==0) )
+       {
+               this->vtkInteractorStyleImage::OnMouseWheelForward();
+       }
+}
+
+//---------------------------------------------------------------------------
+void vtkInteractorStyleBaseView2D::OnMouseWheelBackward () // virtual
+{
+       vtkInteractorStyleBaseView::OnMouseWheelBackward();     
+       if ((GetInteractor()->GetControlKey()==0) || (GetInteractor()->GetShiftKey()==0) )
+       {
+               this->vtkInteractorStyleImage::OnMouseWheelBackward();
+       }
+}
+
+