From: Eduardo DAVILA Date: Sun, 26 Dec 2021 17:01:26 +0000 (+0100) Subject: #3479 Bug Surface Color in ViewerNV box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b167cfbfb5fdb33b61a29cbe8c4b346be675c457;p=creaMaracasVisu.git #3479 Bug Surface Color in ViewerNV box --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DViewCntrlPanel.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DViewCntrlPanel.cxx index 4401691..27c3ffc 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DViewCntrlPanel.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DViewCntrlPanel.cxx @@ -411,10 +411,10 @@ void wxVtkClipping3DViewCntrlPanel::OnColor(wxCommandEvent& event) if( dlgColour.ShowModal( ) == wxID_OK ) { vtkActor *tmpActor; - tmpActor = _wxvtkclipping3Dview->GetVtkClipping3DDataViewer()->GetTissueActor(idTissue); - float r=dlgColour.GetColourData().GetColour().Red()/255; - float g=dlgColour.GetColourData().GetColour().Green()/255; - float b=dlgColour.GetColourData().GetColour().Blue()/255; + tmpActor = _wxvtkclipping3Dview->GetVtkClipping3DDataViewer()->GetTissueActor(idTissue); + float r = dlgColour.GetColourData().GetColour().Red()/255.0; + float g = dlgColour.GetColourData().GetColour().Green()/255.0; + float b = dlgColour.GetColourData().GetColour().Blue()/255.0; tmpActor->GetProperty()->SetColor( r , g , b ); _color->SetBackgroundColour(dlgColour.GetColourData().GetColour()); _wxvtkclipping3Dview->Refresh();