From 5bcc8b11dcea97c8c580aae840f05e3c846c73a7 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 11 Aug 2017 08:58:13 +0200 Subject: [PATCH] #3109 creaMaracas Visu Bug New Normal - branch vtk7itk4 compilation with vtk7 --- .../src/interface/wxWindows/widgets/WidgetShowNPoints.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.45.1