]> Creatis software - creaMaracasVisu.git/commitdiff
Clean code
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Fri, 13 Dec 2019 15:13:50 +0000 (16:13 +0100)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Fri, 13 Dec 2019 15:13:50 +0000 (16:13 +0100)
lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorScrollZ.cxx

index f01b79bb99e6bcae48a2ace8ad3d93332528e7d0..d044094cabcbac7c28c3b58517032fb393acff50 100644 (file)
@@ -66,24 +66,13 @@ bool vtkInteractorScrollZ::OnRightButtonUp()
 //---------------------------------------------------------------------------
 bool vtkInteractorScrollZ::OnMouseMove ()
 {
-       if (_stateFordware==true){
-           //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];  // JPRx
-        int fy      = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
-               double delta   = (_fordwareY - fy)/(3.0*3);
-               /*JCP 14/05/2009
-               _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->SetActualSlice( _sliceZ + delta);
-               */
+       if (_stateFordware==true)
+       {
+        int fy                 = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
+               double delta    = (_fordwareY - fy)/(3.0*3);
                ((wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView())->SetActualSlice( _sliceZ + (int)delta );
-
                this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
-
-       //      wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,12121);
-       //      _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent);
-
-//EED 21 oct 2010
-//printf("EED vtkInteractorScrollZ::OnMouseMove \n");
-//             ((wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView())->Refresh();
-       }
+       } // if _stateFordware
        return true;
 }