]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuTubeFilter.cxx
#3316 creaVtk Feature New - NormalVoiMPR box
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuTubeFilter.cxx
index c25e3e5bb8411b9c2b0be0849a7609223cf93bf2..e3989b55f32b3b274128bc5fdc82736f6db175f9 100644 (file)
@@ -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<vtkTubeFilter> tube = vtkSmartPointer<vtkTubeFilter>::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");
 }
        
 //=====