From a17ed9753af8134f3f4fc861f8f4e860e0992bc8 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 10 Feb 2017 16:28:58 +0300 Subject: [PATCH] Porting to DEV version of the OpenCASCADE: additional changes. --- src/OCCViewer/OCCViewer_ViewModel.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 1318d5fe6..f2c3169ce 100644 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -129,13 +129,15 @@ OCCViewer_Viewer::OCCViewer_Viewer( bool DisplayTrihedron) // init selector myAISContext = new AIS_InteractiveContext( myV3dViewer ); -#if OCC_VERSION_LARGE > 0x07000000 - +#if OCC_VERSION_LARGE > 0x07010000 + myAISContext->HighlightStyle(Prs3d_TypeOfHighlight_LocalSelected)->SetColor( Quantity_NOC_WHITE ); + myAISContext->HighlightStyle(Prs3d_TypeOfHighlight_Selected)->SetColor( Quantity_NOC_WHITE ); +#elif OCC_VERSION_LARGE > 0x07000000 const Handle(Graphic3d_HighlightStyle)& sStyle = myAISContext->SelectionStyle(); - sStyle->SetColor( Quantity_NOC_WHITE ); -#else + sStyle->SetColor( Quantity_NOC_WHITE ); +#else myAISContext->SelectionColor( Quantity_NOC_WHITE ); -#endif +#endif // display isoline on planar faces (box for ex.) myAISContext->IsoOnPlane( true ); -- 2.39.2