]> Creatis software - clitk.git/commitdiff
The animation with a 4D Overlay works
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 3 Dec 2015 08:29:03 +0000 (09:29 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 3 Dec 2015 08:29:03 +0000 (09:29 +0100)
Add the connection between the Overlay Mapper and the Overlay Reslice in the SetOverlay function

vv/vvSlicer.cxx

index 317dc0670f411f54cea1c6f9cb57139aa1c045a8..1aaa8053a99a377bdf76b7e9e79e5c346b75aace 100644 (file)
@@ -430,7 +430,7 @@ void vvSlicer::SetOverlay(vvImage::Pointer overlay)
 #if VTK_MAJOR_VERSION <= 5
     mOverlayMapper->SetInput(mOverlayReslice->GetOutput());
 #else
-    mOverlayMapper->SetInputData(mOverlayReslice->GetOutput());
+    mOverlayMapper->SetInputConnection(mOverlayReslice->GetOutputPort(0));
 #endif
 
     if (!mOverlayActor) {
@@ -840,7 +840,6 @@ void vvSlicer::SetTSlice(int t, bool updateLinkedImages)
 #else
       mOverlayReslice->SetInputData( mOverlay->GetVTKImages()[mCurrentOverlayTSlice] );
 #endif
-
       // Update overlay transform
       mConcatenatedOverlayTransform->Identity();
       mConcatenatedOverlayTransform->Concatenate(mOverlay->GetTransform()[mCurrentOverlayTSlice]);