]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkMaskPoint.cxx
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkMaskPoint.cxx
index c192648b2747b206f4ba2f5600997b851cabb72c..58a2c739344f021adec9f3ad0871f92716aa2f94 100644 (file)
@@ -26,14 +26,19 @@ void MaskPoint::Process()
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
 
-printf("EED MaskPoint::Process Start\n");
+//EED 2017-01-01 Migration VTK7
+#if (VTK_MAJOR_VERSION <= 5) 
        maskpoints->SetInput( bbGetInputIn() );  
+#endif
+#if (VTK_MAJOR_VERSION >= 6) 
+       maskpoints->SetInputData( bbGetInputIn() );  
+#endif
+
        maskpoints->SetOnRatio( bbGetInputRatio() );
        maskpoints->RandomModeOn();     
        maskpoints->SetMaximumNumberOfPoints(5000);     
        maskpoints->Update();
        bbSetOutputOut( maskpoints->GetOutput() );
-printf("EED MaskPoint::Process End\n");
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)