X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicerManagerCommand.cxx;h=f29263b76c34347e66258d9677722c9c05cd71e9;hb=30659c9eea7c95c04002cb3de18d6e584f8d1296;hp=0415c9e8934fe6b98fe6848b37e8ef01445c2776;hpb=e31c341aff6c326966cfea1d8f904f50c527d3cb;p=clitk.git diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 0415c9e..f29263b 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -31,9 +31,11 @@ #include #include #include - +#include +#include #include "vvSlicer.h" #include "vvInteractorStyleNavigator.h" +#include "vtkTransform.h" #include @@ -80,6 +82,8 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, if (VisibleInWindow>-1) renderer=this->SM->GetSlicer(VisibleInWindow)->GetRenderer(); newLandmark = false; + + if (event == vtkCommand::StartPickEvent && VisibleInWindow == -1) { @@ -243,9 +247,13 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, } if (KeyPress == "Up") { - this->SM->GetSlicer(VisibleInWindow)->SetSlice(this->SM->GetSlicer(VisibleInWindow)->GetSlice()+1); - this->SM->UpdateSlice(VisibleInWindow); - this->SM->UpdateInfoOnCursorPosition(VisibleInWindow); + DD("------------ up"); + this->SM->GetSlicer(VisibleInWindow)->SetSlice(this->SM->GetSlicer(VisibleInWindow)->GetSlice()+1); + DD("------------ after set slice"); + this->SM->UpdateInfoOnCursorPosition(VisibleInWindow); + DD("------------ after UpdateInfoOnCursorPosition"); + this->SM->UpdateSlice(VisibleInWindow); + DD("------------ after updateslice"); } if (KeyPress == "Down") { @@ -283,6 +291,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, this->SM->UpdateSliceRange(VisibleInWindow); this->SM->UpdateInfoOnCursorPosition(VisibleInWindow); } + } //All type of mouse events