X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuTubeFilter.cxx;h=e3989b55f32b3b274128bc5fdc82736f6db175f9;hb=2a1cde86bf45b8f9b11514a9b04d5834b10af209;hp=c25e3e5bb8411b9c2b0be0849a7609223cf93bf2;hpb=bb69ea7be3f8baa4122fb51d04b4ec6ce906c809;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuTubeFilter.cxx b/bbtk/src/bbcreaMaracasVisuTubeFilter.cxx index c25e3e5..e3989b5 100644 --- a/bbtk/src/bbcreaMaracasVisuTubeFilter.cxx +++ b/bbtk/src/bbcreaMaracasVisuTubeFilter.cxx @@ -109,8 +109,6 @@ namespace bbcreaMaracasVisu void MaracasTubeFilter::Run() { - - unsigned int i; unsigned int nTv = 8; // No. of surface elements for each tube vertex @@ -178,7 +176,14 @@ namespace bbcreaMaracasVisu vtkSmartPointer tube = vtkSmartPointer::New(); tube->CappingOn(); + +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 tube->SetInput(polyData); +#else + tube->SetInputData(polyData); +#endif + tube->SetNumberOfSides(nTv); tube->SetVaryRadiusToVaryRadiusByAbsoluteScalar(); @@ -242,8 +247,6 @@ void TubeFilter::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') - printf("EED TubeFilter::Process start \n"); - if (tubefilter!=NULL) { delete tubefilter; @@ -266,7 +269,6 @@ void TubeFilter::Process() tubefilter->SetlstColour( bbGetInputColour() ); tubefilter->Run(); bbSetOutputOutAxis( tubefilter->GetActor() ); - printf("EED TubeFilter::Process end \n"); } //=====