X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicerManagerCommand.cxx;h=5b35bdd826e9eb94797518a8fcd5f565a9e949bb;hb=000ac5b867a708575268c7c823db4fcbe727c2d6;hp=0415c9e8934fe6b98fe6848b37e8ef01445c2776;hpb=e31c341aff6c326966cfea1d8f904f50c527d3cb;p=clitk.git diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 0415c9e..5b35bdd 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) { @@ -283,6 +287,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, this->SM->UpdateSliceRange(VisibleInWindow); this->SM->UpdateInfoOnCursorPosition(VisibleInWindow); } + } //All type of mouse events