]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuImageActor.cxx
#3138 creaMaracasVisu Feature New Normal - branch vtk7itk4wx3
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuImageActor.cxx
index dcbac3431771099a0c8cc2018b7be9c631810391..d640d8d2a30877d44af57e4d128ffc9a55c6e0ea 100644 (file)
@@ -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