From: tbaudier Date: Thu, 3 Dec 2015 08:29:03 +0000 (+0100) Subject: The animation with a 4D Overlay works X-Git-Tag: v1.4.0~90^2^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ad4cc0a7201cec086ad3ed4d97b103b356db522a;p=clitk.git The animation with a 4D Overlay works Add the connection between the Overlay Mapper and the Overlay Reslice in the SetOverlay function --- 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]);