X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FvtkInteractorStyleBaseView.cxx;h=012e2d9a46f4e1b65101660a93a4c3636756b6c2;hb=5380f9e66daf440f27f33bb060e5ae1a646612cd;hp=6ed188aeb752215aca6d00cb5569d0548f1b4a87;hpb=199d5048b6c5ac6663b8671f55289e4a0820f9cc;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx index 6ed188a..012e2d9 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx @@ -17,6 +17,9 @@ vtkInteractorStyleBaseView::vtkInteractorStyleBaseView() _refresh_waiting = false; _parent_refresh_waiting = false; _blockRefresh = false; + + //EED27Juillet2011 + SetMouseWheelMotionFactor(0.5); } //--------------------------------------------------------------------------- vtkInteractorStyleBaseView::~vtkInteractorStyleBaseView() @@ -75,11 +78,21 @@ void vtkInteractorStyleBaseView::OnRightDClick() // virtual { CallLstInteractorStyleMaracas( 12 ); } -//--------------------------------------------------------------------------- -void vtkInteractorStyleBaseView::OnMouseWheel() // virtual + + +void vtkInteractorStyleBaseView::OnMouseWheelForward() // virtual { - CallLstInteractorStyleMaracas( 14 ); + CallLstInteractorStyleMaracas( 15 ); } + +void vtkInteractorStyleBaseView::OnMouseWheelBackward() // virtual +{ + CallLstInteractorStyleMaracas( 16 ); +} + + + + //--------------------------------------------------------------------------- void vtkInteractorStyleBaseView::AddInteractorStyleMaracas(InteractorStyleMaracas* interactorStyleMaracas) { @@ -131,7 +144,7 @@ void vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(int type) for (i=0;iOnMouseWheel()==false) + // 14 ... old OnMouseWheelFordward + if (type==15) + { // OnMouseWheelForward + if (intStyMar->OnMouseWheelForward()==false) + { + i=size; + } + } + if (type==16) + { // OnMouseWheelBackward + if (intStyMar->OnMouseWheelBackward()==false) { i=size; } } + + } // if active } // for