Add the connection between the Overlay Mapper and the Overlay Reslice in the SetOverlay function
#if VTK_MAJOR_VERSION <= 5
mOverlayMapper->SetInput(mOverlayReslice->GetOutput());
#else
- mOverlayMapper->SetInputData(mOverlayReslice->GetOutput());
+ mOverlayMapper->SetInputConnection(mOverlayReslice->GetOutputPort(0));
#endif
if (!mOverlayActor) {
#else
mOverlayReslice->SetInputData( mOverlay->GetVTKImages()[mCurrentOverlayTSlice] );
#endif
-
// Update overlay transform
mConcatenatedOverlayTransform->Identity();
mConcatenatedOverlayTransform->Concatenate(mOverlay->GetTransform()[mCurrentOverlayTSlice]);