X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSurfaceViewerDialog.cxx;h=e8a6acb231dc06bc6f01cd790a60f85b0b201aa9;hb=e502d745ac4c73037ef615931db2dcbf36a94341;hp=f50cb09ed34845c8d8172b82f227a06cd2917cbb;hpb=3a823a03d4a2217e41e4dd3b05a8ea825bb762a5;p=clitk.git diff --git a/vv/vvSurfaceViewerDialog.cxx b/vv/vvSurfaceViewerDialog.cxx index f50cb09..e8a6acb 100644 --- a/vv/vvSurfaceViewerDialog.cxx +++ b/vv/vvSurfaceViewerDialog.cxx @@ -114,7 +114,7 @@ void vvSurfaceViewerDialog::LoadSurface() #if VTK_MAJOR_VERSION <= 5 mMapper->SetInput(mReaders[mCurrentTime]->GetOutput()); #else - mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput()); + mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort()); #endif if (!mActor) { @@ -147,7 +147,7 @@ void vvSurfaceViewerDialog::NextTime() #if VTK_MAJOR_VERSION <= 5 mMapper->SetInput(mReaders[mCurrentTime]->GetOutput()); #else - mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput()); + mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort()); #endif mMapper->Modified(); renderWidget->GetRenderWindow()->Render(); @@ -161,7 +161,7 @@ void vvSurfaceViewerDialog::PreviousTime() #if VTK_MAJOR_VERSION <= 5 mMapper->SetInput(mReaders[mCurrentTime]->GetOutput()); #else - mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput()); + mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort()); #endif mMapper->Modified(); renderWidget->GetRenderWindow()->Render();