X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaVtk%2FvtkStreamLineCreateColorInfo.cpp;h=9d522cb3ba4e88b5be2dbc62d8ef2ff7646bdf5c;hb=ef9f90810fcc3800acac54a104f14ff505135fd3;hp=c088d5e211029ba63edd7f9736d664627700ae81;hpb=8eab35636049813a6ce1b8f0e2d99e62dd280e0e;p=creaVtk.git diff --git a/lib/creaVtk/vtkStreamLineCreateColorInfo.cpp b/lib/creaVtk/vtkStreamLineCreateColorInfo.cpp index c088d5e..9d522cb 100644 --- a/lib/creaVtk/vtkStreamLineCreateColorInfo.cpp +++ b/lib/creaVtk/vtkStreamLineCreateColorInfo.cpp @@ -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 ); }