]> Creatis software - clitk.git/commitdiff
Fixed bug with linked temporal images
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 4 Sep 2012 07:57:57 +0000 (09:57 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 4 Sep 2012 07:57:57 +0000 (09:57 +0200)
vv/vvSlicer.cxx
vv/vvSlicerManager.cxx

index 2a5c9247bbe3b0884d392521fa302a81c5e8c797..f84011c0cd4da76107a2931354c905bb00b6e3de 100644 (file)
@@ -307,7 +307,7 @@ void vvSlicer::SetCurrentPosition(double x, double y, double z, int t)
   mCurrentBeforeSlicingTransform[1]=y;
   mCurrentBeforeSlicingTransform[2]=z;
   mSlicingTransform->GetInverse()->TransformPoint(mCurrentBeforeSlicingTransform,mCurrent);
-  mCurrentTSlice = t;
+  SetTSlice(t);
 }
 //------------------------------------------------------------------------------
 
index 8411f030d3fda72e235929a0b28a52126383102f..5affb4be4bc9fbcc431c7569f56b6be7540dfac5 100644 (file)
@@ -686,9 +686,7 @@ void vvSlicerManager::UpdateLinked(int slicer)
       z >= mSlicers[slicer]->GetInput()->GetWholeExtent()[4]-0.5 &&
       z <= mSlicers[slicer]->GetInput()->GetWholeExtent()[5]+0.5) {
     for (std::list<std::string>::const_iterator i = mLinkedId.begin(); i != mLinkedId.end(); i++) {
-      emit UpdateLinkManager(*i, slicer,mSlicers[slicer]->GetCurrentPosition()[0],
-                             mSlicers[slicer]->GetCurrentPosition()[1],
-                             mSlicers[slicer]->GetCurrentPosition()[2],mSlicers[slicer]->GetTSlice());
+      emit UpdateLinkManager(*i, slicer, p[0], p[1], p[2], mSlicers[slicer]->GetTSlice());
     }
   }
 }