From: Eduardo DAVILA Date: Fri, 13 Dec 2019 15:13:50 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ca35b13e046343c8b50cbd6b833828b06c9d1608;p=creaMaracasVisu.git Clean code --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorScrollZ.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorScrollZ.cxx index f01b79b..d044094 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorScrollZ.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorScrollZ.cxx @@ -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; }