]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkImageExtractComponents.cxx
#3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageExtractComponents.cxx
index d89990567b05e2e6c8e8918a62e9cc64e7ac4413..2769f798ee23f5ef242bb9891f5934e2f646f518 100644 (file)
@@ -36,7 +36,12 @@ void ImageExtractComponents::Process()
 
        if (bbGetInputComponent0()!=-1)
        {
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                IEC0->SetInput( bbGetInputIn() );
+#else
+               IEC0->SetInputData( bbGetInputIn() );
+#endif
                IEC0->SetComponents( bbGetInputComponent0() );
                IEC0->Update();
                bbSetOutputOut0( IEC0->GetOutput() ); 
@@ -44,7 +49,12 @@ void ImageExtractComponents::Process()
 
        if (bbGetInputComponent1()!=-1)
        {
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                IEC1->SetInput( bbGetInputIn() );
+#else
+               IEC1->SetInputData( bbGetInputIn() );
+#endif
                IEC1->SetComponents( bbGetInputComponent1() );
                IEC1->Update();
                bbSetOutputOut1( IEC1->GetOutput() ); 
@@ -52,7 +62,12 @@ void ImageExtractComponents::Process()
 
        if (bbGetInputComponent2()!=-1)
        {
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                IEC2->SetInput( bbGetInputIn() );
+#else
+               IEC2->SetInputData( bbGetInputIn() );
+#endif
                IEC2->SetComponents( bbGetInputComponent2() );
                IEC2->Update();
                bbSetOutputOut2( IEC2->GetOutput() ); 
@@ -60,7 +75,13 @@ void ImageExtractComponents::Process()
 
        if (bbGetInputComponent3()!=-1)
        {
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                IEC3->SetInput( bbGetInputIn() );
+#else
+               IEC3->SetInputData( bbGetInputIn() );
+#endif
                IEC3->SetComponents( bbGetInputComponent2() );
                IEC3->Update();
                bbSetOutputOut3( IEC3->GetOutput() );