18 #include "vtkInteractorStyleImage2.h" 20 #include <vtkRenderWindowInteractor.h> 25 void vtkInteractorStyleImage2::PrintSelf(ostream& os, vtkIndent indent)
27 this->Superclass::PrintSelf(os, indent);
30 void vtkInteractorStyleImage2::OnMouseWheelForward()
32 if(this->Interactor->GetShiftKey())
34 this->Superclass::OnMouseWheelForward();
41 if(viewer->GetSlice()+1 <= viewer->GetSliceMax())
43 viewer->SetSlice(viewer->GetSlice()+1);
46 this->StartState(VTKIS_NONE);
50 void vtkInteractorStyleImage2::OnMouseWheelBackward()
52 if(this->Interactor->GetShiftKey())
54 this->Superclass::OnMouseWheelBackward();
61 if (viewer->GetSlice()-1 >= viewer->GetSliceMin())
63 viewer->SetSlice(viewer->GetSlice()-1);
66 this->StartState(VTKIS_NONE);