]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/creaVtkStreamLine.cpp
Merge remote-tracking branch 'origin/vtk7itk4' into vtk7itk4wx3
[creaVtk.git] / lib / creaVtk / creaVtkStreamLine.cpp
index 51685afb696fcdfeda105521262d2f2cfc910009..45ae170df5442f1e03fee6c8b94a1ea882e49378 100644 (file)
@@ -108,27 +108,53 @@ void creaVtkStreamLine::Process()
 
                        if (GetTypeForm()==0) 
                        {
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                                _tubefilter->SetInput( _polydata );
+#else
+                               _tubefilter->SetInputData( _polydata );
+#endif
                                _tubefilter->SetRadius( GetScaleFactor() );     
                                _tubefilter->SetNumberOfSides(12);
                                _tubefilter->SetVaryRadiusToVaryRadiusOff();            
                                _tubefilter->Modified();
                                _tubefilter->Update();
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                                _streamMapper2->SetInput( _tubefilter->GetOutput() );
+#else
+                               _streamMapper2->SetInputData( _tubefilter->GetOutput() );
+#endif
                        } 
                        if (GetTypeForm()==1) 
                        {
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                                _ribbonfilter->SetInput( _polydata );
+#else
+                               _ribbonfilter->SetInputData( _polydata );
+#endif
                                _ribbonfilter->SetWidth( GetScaleFactor() );    
                                _ribbonfilter->SetWidthFactor( GetScaleFactor()*10 );
                                _ribbonfilter->GlobalWarningDisplayOff ();  //EED this is to avoid the "BEVEL WARNING"
                                _ribbonfilter->Modified();
                                _ribbonfilter->Update();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                                _streamMapper2->SetInput( _ribbonfilter->GetOutput() );
+#else
+                               _streamMapper2->SetInputData( _ribbonfilter->GetOutput() );
+#endif
                        }                       
                        if (GetTypeForm()==2) 
                        {
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                                _streamMapper2->SetInput( _polydata );
+#else
+                               _streamMapper2->SetInputData( _polydata );
+#endif
                        }                       
 //EED                  _streamMapper2->SetLookupTable(vGreenToRedLut);