X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuImageActor.cxx;h=d640d8d2a30877d44af57e4d128ffc9a55c6e0ea;hb=56eb704bce4e7a4206ffa16c84f3000b8b8f93eb;hp=dcbac3431771099a0c8cc2018b7be9c631810391;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuImageActor.cxx b/bbtk/src/bbmaracasvisuImageActor.cxx index dcbac34..d640d8d 100644 --- a/bbtk/src/bbmaracasvisuImageActor.cxx +++ b/bbtk/src/bbmaracasvisuImageActor.cxx @@ -43,9 +43,21 @@ void ImageActor::Process() if(img != NULL){ +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 imageshiftscale->SetInput( img ); +#else + imageshiftscale->SetInputData( img ); +#endif imageshiftscale->SetOutputScalarTypeToUnsignedChar(); + +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 imageactor->SetInput( imageshiftscale->GetOutput() ); +#else + imageshiftscale->Update(); + imageactor->SetInputData( imageshiftscale->GetOutput() ); +#endif if (transform!=NULL){ imageactor->SetUserTransform( transform ); } // transform