]> Creatis software - clitk.git/blobdiff - vv/vvSlicerManagerCommand.cxx
[VV] New feature to jump on image origin
[clitk.git] / vv / vvSlicerManagerCommand.cxx
index ab0e5f8b8835b0440a2fe170472d796cb9b9cc11..09a95456a2a1fc574933b63ca3349fb3c81615ff 100644 (file)
@@ -217,6 +217,12 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
           this->SM->UpdateLinked(VisibleInWindow);
           return;
         }
+        if (KeyPress == "o") {
+          this->SM->GetSlicer(VisibleInWindow)->SetCurrentPosition(0,0,0,0);
+          this->SM->UpdateViews(1,VisibleInWindow);
+          this->SM->UpdateLinked(VisibleInWindow);
+          return;
+        }
         if (KeyPress == "F5") {
           this->SM->GetSlicer(VisibleInWindow)->FlipHorizontalView();
           this->SM->GetSlicer(VisibleInWindow)->Render();