From ca35b13e046343c8b50cbd6b833828b06c9d1608 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 13 Dec 2019 16:13:50 +0100 Subject: [PATCH] Clean code --- .../widgets/vtkInteractorScrollZ.cxx | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) 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; } -- 2.47.1