From: David Sarrut Date: Fri, 13 Jul 2012 11:34:45 +0000 (+0200) Subject: Add signal to propagate the mouse position has changed. X-Git-Tag: v1.4.0~325 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=dfbda72493d2905f9c653a6647a293fc2b945656;p=clitk.git Add signal to propagate the mouse position has changed. --- diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 1b71033..d01abbb 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -276,7 +276,6 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, return; } - //DD(event); // Mouse release HERE if (event == vtkCommand::EndPickEvent) { // DD(VisibleInWindow); @@ -362,8 +361,12 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, zWorld = z; break; } + this->SM->GetSlicer(VisibleInWindow)->SetCurrentPosition(xWorld,yWorld,zWorld, - this->SM->GetSlicer(VisibleInWindow)->GetTSlice()); + this->SM->GetSlicer(VisibleInWindow)->GetTSlice()); + // We propagate the mouse position + this->SM->EmitMousePositionUpdated(VisibleInWindow); + if (newLandmark) { this->SM->AddLandmark(xWorld,yWorld,zWorld, this->SM->GetSlicer(VisibleInWindow)->GetTSlice());