]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/vtkStreamLineCreateColorInfo.cpp
#3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaVtk.git] / lib / creaVtk / vtkStreamLineCreateColorInfo.cpp
index c088d5e211029ba63edd7f9736d664627700ae81..9d522cb3ba4e88b5be2dbc62d8ef2ff7646bdf5c 100644 (file)
@@ -69,7 +69,13 @@ void vtkStreamLineCreateColorInfo::Run()
        double                  vx,vy,vz,mag;
        double                  colorDirX,colorDirY,colorDirZ;
 
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
        _StreamLinesIn->Update();
+#else
+  //...
+#endif
+
        vtkCharArray    *mask                           = vtkCharArray::New();
        vtkDoubleArray  *magnitud                       = vtkDoubleArray::New();
        vtkDoubleArray  *velocity                       = vtkDoubleArray::New();
@@ -126,15 +132,15 @@ void vtkStreamLineCreateColorInfo::Run()
                magnitud->SetTuple1 (id, mag);
                velocity->SetTuple3 (id, vx,vy,vz);
                colorDirection->SetTuple3 (id, colorDirX,colorDirY,colorDirZ);
-}
+               } // for jj
 
                ii=ii+numberofids+1;
-       } // for iLine
+   } // for iLine
 
-               _StreamLinesIn->GetPointData()->AddArray( mask );
-               _StreamLinesIn->GetPointData()->AddArray( magnitud );
-               _StreamLinesIn->GetPointData()->AddArray( velocity );
-               _StreamLinesIn->GetPointData()->AddArray( colorDirection );
+       _StreamLinesIn->GetPointData()->AddArray( mask );
+       _StreamLinesIn->GetPointData()->AddArray( magnitud );
+       _StreamLinesIn->GetPointData()->AddArray( velocity );
+       _StreamLinesIn->GetPointData()->AddArray( colorDirection );
 
 }