]> Creatis software - clitk.git/commitdiff
Add signal to propagate the mouse position has changed.
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 13 Jul 2012 11:34:45 +0000 (13:34 +0200)
committerDavid Sarrut <david.sarrut@gmail.com>
Fri, 13 Jul 2012 11:34:45 +0000 (13:34 +0200)
vv/vvSlicerManagerCommand.cxx

index 1b7103301b7d9f0544c731c14ccca913a623657d..d01abbb42dc38868035093357b90d48bd76886d9 100644 (file)
@@ -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());