]> Creatis software - creaMaracasVisu.git/commitdiff
#3109 creaMaracas Visu Bug New Normal - branch vtk7itk4 compilation with vtk7
authorEduardo DAVILA <davila@localhost.localdomain>
Fri, 11 Aug 2017 06:58:13 +0000 (08:58 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Fri, 11 Aug 2017 06:58:13 +0000 (08:58 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx

index 8f094a6c6bb0f4530ba772a176882492e1f2292f..02d3f4324bf1453f0deac9414299bef52aa11759 100644 (file)
@@ -215,6 +215,13 @@ void WidgetShowNPoints::RefreshPoint(int id)
        lstActorsSphere[id]->GetProperty()->SetOpacity( mopacity );
        lstSourceSphere[id]->SetRadius( radio );
 
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+       // ..
+#else
+       lstSourceSphere[id]->Update();
+#endif
+
        lstActorsText[id]->SetInput( label.c_str()  );
        lstActorsText[id]->SetPosition(  radio+spc[0]*x , spc[1]*y , spc[2]*z );
 }
@@ -246,6 +253,7 @@ void WidgetShowNPoints::AddVtkPoint()
 #if VTK_MAJOR_VERSION <= 5
        sphereMapper->SetInput( vtksphere->GetOutput() );
 #else
+       vtksphere->Update();
        sphereMapper->SetInputData( vtksphere->GetOutput() );
 #endif