From: rnv Date: Mon, 13 Mar 2017 15:00:59 +0000 (+0300) Subject: Prepare OCCT version 7.1.0+ for SALOME-8.2.0 X-Git-Tag: SHAPER_2.7.0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8abb46fb59fc22dc5244c87744ed68dce7e5c564;p=modules%2Fgeom.git Prepare OCCT version 7.1.0+ for SALOME-8.2.0 --- diff --git a/src/OBJECT/GEOM_Annotation.cxx b/src/OBJECT/GEOM_Annotation.cxx index 1c66c77c1..2ab8f8e12 100755 --- a/src/OBJECT/GEOM_Annotation.cxx +++ b/src/OBJECT/GEOM_Annotation.cxx @@ -66,7 +66,7 @@ GEOM_Annotation::GEOM_Annotation() : AIS_InteractiveObject() SetDisplayMode( 0 ); SetZLayer( Graphic3d_ZLayerId_Default ); SetAutoHide( Standard_True ); -#if OCC_VERSION_LARGE <= 0x07010000 +#if OCC_VERSION_LARGE <= 0x07010001 SetHilightMode( HighlightAll ); #endif SetMutable( Standard_True ); @@ -749,7 +749,7 @@ void GEOM_Annotation::OpenGl_Annotation::Render( const Handle(OpenGl_Workspace)& return; } } -#if OCC_VERSION_LARGE > 0x07010000 +#if OCC_VERSION_LARGE > 0x07010001 const Handle(Graphic3d_PresentationAttributes) aHighlightStyle = theWorkspace->HighlightStyle(); if (!aHighlightStyle.IsNull() && myAISObject->myHilightMode == HighlightLabel) { @@ -879,7 +879,7 @@ void GEOM_Annotation::OpenGl_Annotation::Render( const Handle(OpenGl_Workspace)& aContext->ApplyModelViewMatrix(); -#if OCC_VERSION_LARGE > 0x07010000 +#if OCC_VERSION_LARGE > 0x07010001 theWorkspace->SetHighlightStyle(aHighlightStyle); #else if ( toHighlight != theWorkspace->ToHighlight() ) @@ -895,7 +895,7 @@ void GEOM_Annotation::OpenGl_Annotation::Render( const Handle(OpenGl_Workspace)& // purpose : Perform highlighting of the presentation. // ======================================================================= void GEOM_Annotation::GEOM_AnnotationOwner::HilightWithColor( const Handle(PrsMgr_PresentationManager3d)& thePM, -#if OCC_VERSION_LARGE > 0x07010000 +#if OCC_VERSION_LARGE > 0x07010001 const Handle(Prs3d_Drawer)& theStyle, #else const Handle(Graphic3d_HighlightStyle)& theStyle, @@ -905,7 +905,7 @@ void GEOM_Annotation::GEOM_AnnotationOwner::HilightWithColor( const Handle(PrsMg if ( myPrsSh.IsNull() ) { Handle(Prs3d_Drawer) aDrawer = new Prs3d_Drawer; -#if OCC_VERSION_LARGE > 0x07010000 +#if OCC_VERSION_LARGE > 0x07010001 aDrawer->Link( theStyle ); #else aDrawer->Link( Selectable()->HilightAttributes() ); @@ -943,7 +943,7 @@ void GEOM_Annotation::GEOM_AnnotationOwner::Unhilight ( const Handle(PrsMgr_Pres { SelectMgr_EntityOwner::Unhilight( thePM, theMode ); -#if OCC_VERSION_LARGE > 0x07010000 +#if OCC_VERSION_LARGE > 0x07010001 thePM->Unhighlight( myPrsSh ); #else thePM->Unhighlight( myPrsSh, theMode ); diff --git a/src/OBJECT/GEOM_Annotation.hxx b/src/OBJECT/GEOM_Annotation.hxx index e672dd446..00fc80986 100755 --- a/src/OBJECT/GEOM_Annotation.hxx +++ b/src/OBJECT/GEOM_Annotation.hxx @@ -363,7 +363,7 @@ public: //! \param theMode [in] the display mode. virtual void HilightWithColor( const Handle(PrsMgr_PresentationManager3d)& thePM, -#if OCC_VERSION_LARGE > 0x07010000 +#if OCC_VERSION_LARGE > 0x07010001 const Handle(Prs3d_Drawer)& theStyle, #else const Handle(Graphic3d_HighlightStyle)& theStyle,