]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/cutImageSegmentation.cpp
Merge remote-tracking branch 'origin/vtk7itk4' into vtk7itk4wx3
[creaVtk.git] / lib / creaVtk / cutImageSegmentation.cpp
index 9659847a6e891736482aefa7694dd33ca949641b..f898f85d7bee3c7138ca20b8813f0065f2823a67 100644 (file)
@@ -186,21 +186,37 @@ void cutImageSegmentation::Process()
                m_Image->SetOrigin(origin);
 
 
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                extrude->SetInput(m_Mesh1);
+#else
+               extrude->SetInputData(m_Mesh1);
+#endif
                extrude->SetScaleFactor(1);
                extrude->SetExtrusionTypeToNormalExtrusion();
                extrude->SetVector(0,0,1);
                extrude->Update();
 
                dataToStencil->SetTolerance(0);
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                dataToStencil->SetInput(extrude->GetOutput());
+#else
+               dataToStencil->SetInputData(extrude->GetOutput());
+#endif
                dataToStencil->SetOutputOrigin(origin);
                dataToStencil->SetOutputSpacing(spacing);
                dataToStencil->SetOutputWholeExtent(m_Image->GetExtent());
                dataToStencil->Update();
 
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                imageStencil->SetInput(m_Image);
                imageStencil->SetStencil(dataToStencil->GetOutput());
+#else
+               imageStencil->SetInputData(m_Image);
+               imageStencil->SetStencilData(dataToStencil->GetOutput());
+#endif
                imageStencil->ReverseStencilOff();
                imageStencil->SetBackgroundValue(-200);
                imageStencil->Update();
@@ -211,7 +227,7 @@ void cutImageSegmentation::Process()
        }//i m_Mesh1 != Null
        else{
 
-               std::cout << "MLER cutImageSegmentation :: NO HAY MESH" << std::endl;
+               std::cout << "MLER cutImageSegmentation :: MESH NOT EXIST" << std::endl;
 
        }//else if m_Mesh1