X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FvtkMPR3DDataViewer.cxx;h=f35206765b43494bb0fc6c36e5063b224b5656d7;hb=410e06c32fc330d53bc93f81afeca8b72a6ddb26;hp=e43df9aa9ca1882dcb6e674f76ae7ab745037440;hpb=ba3bf1e05af2b03d6b013606b9d885d8fb0b2cb4;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx index e43df9a..f352067 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkMPR3DDataViewer.cxx @@ -281,16 +281,16 @@ void vtkMPR3DDataViewer::Configure() _saggitalColors = vtkImageMapToColors::New(); } _saggitalColors->RemoveAllInputs(); + // _saggitalColors->SetLookupTable(_bwLut); + _saggitalColors->SetLookupTable(_ctfun); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 _saggitalColors->SetInput( _vtkmprbasedata->GetImageData() ); #else _saggitalColors->SetInputData( _vtkmprbasedata->GetImageData() ); + _saggitalColors->Update(); #endif - // _saggitalColors->SetLookupTable(_bwLut); - - _saggitalColors->SetLookupTable(_ctfun); if(_saggital==NULL) @@ -317,16 +317,17 @@ void vtkMPR3DDataViewer::Configure() } _axialColors->RemoveAllInputs(); + // _axialColors->SetLookupTable(_hueLut); + _axialColors->SetLookupTable(_ctfun); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 _axialColors->SetInput( _vtkmprbasedata->GetImageData() ); #else _axialColors->SetInputData( _vtkmprbasedata->GetImageData() ); + _axialColors->Update(); #endif - // _axialColors->SetLookupTable(_hueLut); - _axialColors->SetLookupTable(_ctfun); if(_axial==NULL) { @@ -351,16 +352,17 @@ void vtkMPR3DDataViewer::Configure() _coronalColors = vtkImageMapToColors::New(); } _coronalColors->RemoveAllInputs(); + // _coronalColors->SetLookupTable(_satLut); + _coronalColors->SetLookupTable(_ctfun); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 _coronalColors->SetInput( _vtkmprbasedata->GetImageData() ); #else _coronalColors->SetInputData( _vtkmprbasedata->GetImageData() ); + _coronalColors->Update(); #endif - // _coronalColors->SetLookupTable(_satLut); - _coronalColors->SetLookupTable(_ctfun); if(_coronal==NULL) { @@ -391,6 +393,7 @@ void vtkMPR3DDataViewer::Configure() _outlineData->SetInput((vtkDataSet *) _vtkmprbasedata->GetImageData() ); #else _outlineData->SetInputData((vtkDataSet *) _vtkmprbasedata->GetImageData() ); + _outlineData->Update(); #endif } // if _image