//---------------------------------------------------------------------------
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;
}