From: Eduardo DAVILA <davila@localhost.localdomain>
Date: Fri, 11 Aug 2017 06:58:13 +0000 (+0200)
Subject: #3109 creaMaracas Visu Bug New Normal  -  branch vtk7itk4 compilation with vtk7
X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5bcc8b11dcea97c8c580aae840f05e3c846c73a7;p=creaMaracasVisu.git

#3109 creaMaracas Visu Bug New Normal  -  branch vtk7itk4 compilation with vtk7
---

diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx
index 8f094a6..02d3f43 100644
--- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx
+++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx
@@ -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