From: vsr Date: Tue, 24 Jan 2017 12:57:44 +0000 (+0300) Subject: Porting to OCCT 7.1 X-Git-Tag: Salome_8_3_Hydro_1_1rc1~58^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f2a46636f746c97d7c2a97d6a83f2ba8e78806fb;p=modules%2Fhydro.git Porting to OCCT 7.1 --- diff --git a/src/HYDROGUI/HYDROGUI_ZLayers2.cxx b/src/HYDROGUI/HYDROGUI_ZLayers2.cxx index af9391c7..c3f54766 100644 --- a/src/HYDROGUI/HYDROGUI_ZLayers2.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLayers2.cxx @@ -23,6 +23,7 @@ #include #include #include +#include void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_InteractiveContext)& theContext, int theLayer ) @@ -37,7 +38,12 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_Int if( !aPrsObj.IsNull() && !aPrsObj->IsKind( STANDARD_TYPE(AIS_Trihedron) ) ) { int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0; - theContext->MainPrsMgr()->Color( aPrsObj, Quantity_NOC_YELLOW, aMode ); +#if OCC_VERSION_LARGE < 0x07010000 + Quantity_NameOfColor aStyle = Quantity_NOC_YELLOW; +#else + Handle(Graphic3d_HighlightStyle) aStyle = new Graphic3d_HighlightStyle( Aspect_TOHM_COLOR, Quantity_NOC_YELLOW ); +#endif + theContext->MainPrsMgr()->Color( aPrsObj, aStyle, aMode ); SetPrsZLayer( aPrsObj, aMode, theLayer ); theContext->MainPrsMgr()->Unhighlight( aPrsObj, aMode ); }