From: vsv Date: Tue, 6 Nov 2018 12:37:49 +0000 (+0300) Subject: Issue #2613: Use Yellow color for highlighted object X-Git-Tag: V9_2_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dbf2bdade22158e305d764101353d0da8f3b3f4a;p=modules%2Fshaper.git Issue #2613: Use Yellow color for highlighted object --- diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index 8af188b48..7c9af296a 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -38,6 +38,9 @@ #include + +#define HIGHLIGHT_COLOR Quantity_NOC_YELLOW + XGUI_ViewerProxy::XGUI_ViewerProxy(XGUI_Workshop* theParent) : ModuleBase_IViewer(theParent), myWorkshop(theParent) @@ -418,7 +421,7 @@ void XGUI_ViewerProxy::displayHighlight() aRes = (*aIt); TopoDS_Shape aTShape = aRes->shape()->impl(); aAis = new AIS_Shape(aTShape); - aAis->SetColor(Quantity_NOC_CYAN4); + aAis->SetColor(HIGHLIGHT_COLOR); aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost myHighlights.Append(aAis); aContext->Display(aAis, false); @@ -429,7 +432,7 @@ void XGUI_ViewerProxy::displayHighlight() else { TopoDS_Shape aTShape = myResult->shape()->impl(); Handle(AIS_Shape) aAis = new AIS_Shape(aTShape); - aAis->SetColor(Quantity_NOC_CYAN4); + aAis->SetColor(HIGHLIGHT_COLOR); aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost myHighlights.Append(aAis); aContext->Display(aAis, false);