]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Porting to DEV version of the OpenCASCADE: additional changes.
authorrnv <rnv@opencascade.com>
Fri, 10 Feb 2017 13:28:58 +0000 (16:28 +0300)
committerrnv <rnv@opencascade.com>
Fri, 10 Feb 2017 13:28:58 +0000 (16:28 +0300)
src/OCCViewer/OCCViewer_ViewModel.cxx

index 1318d5fe6a1fee5e2e8e49ac3e9d6dc49665a10f..f2c3169ce0d324aa504bd99ecc408d8e43f2d72a 100644 (file)
@@ -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 );