- if (_stateFordware==true){
- //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; // JPRx
- int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
- double delta = (_fordwareY - fy)/3.0;
- /*JCP 14/05/2009
- _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->SetActualSlice( _sliceZ + delta);
- */
+ if (_stateFordware==true)
+ {
+ int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
+ double delta = (_fordwareY - fy)/(20.0);
+ int direction = ((wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView())->GetDirection( );
+ if ( (direction==0) || (direction==2) )
+ {
+ delta=(-1)*delta;
+ } // if direction