From ad4cc0a7201cec086ad3ed4d97b103b356db522a Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 3 Dec 2015 09:29:03 +0100 Subject: [PATCH] The animation with a 4D Overlay works Add the connection between the Overlay Mapper and the Overlay Reslice in the SetOverlay function --- vv/vvSlicer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 317dc06..1aaa805 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -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]); -- 2.47.1