X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkMaskPoint.cxx;fp=packages%2Fvtk%2Fsrc%2FbbvtkMaskPoint.cxx;h=58a2c739344f021adec9f3ad0871f92716aa2f94;hb=d19c5512748aa8e2dd5c3d01d9ec680ded1f17ce;hp=c192648b2747b206f4ba2f5600997b851cabb72c;hpb=088ed2b7bdbe14eb85a7245afaa693ddb7a53a97;p=bbtk.git diff --git a/packages/vtk/src/bbvtkMaskPoint.cxx b/packages/vtk/src/bbvtkMaskPoint.cxx index c192648..58a2c73 100644 --- a/packages/vtk/src/bbvtkMaskPoint.cxx +++ b/packages/vtk/src/bbvtkMaskPoint.cxx @@ -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)