From: vsr Date: Thu, 30 Apr 2015 10:27:32 +0000 (+0300) Subject: Update for latest OCCT (IR-2015-04-23) X-Git-Tag: V7_6_0rc1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cf3eb34b97384c0bde32b5ca0a3af434a64739a0;p=modules%2Fgui.git Update for latest OCCT (IR-2015-04-23) --- diff --git a/src/OCCViewer/CMakeLists.txt b/src/OCCViewer/CMakeLists.txt index 975d3b8ad..760e267f2 100755 --- a/src/OCCViewer/CMakeLists.txt +++ b/src/OCCViewer/CMakeLists.txt @@ -42,9 +42,9 @@ INCLUDE_DIRECTORIES( ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS}) # VSR: TEMPORARY, to be removed -IF(OCCT_DEV_COMPAT) -ADD_DEFINITIONS(-DOCCT_DEV_COMPAT) -ENDIF(OCCT_DEV_COMPAT) +IF(OCCT_690BETA_COMPAT) +ADD_DEFINITIONS(-DOCCT_690BETA_COMPAT) +ENDIF(OCCT_690BETA_COMPAT) # libraries to link to SET(_link_LIBRARIES diff --git a/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx b/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx index 107824adb..ea7231107 100644 --- a/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx +++ b/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx @@ -265,7 +265,7 @@ void OCCViewer_CubeAxesDlg::ApplyData( const Handle(V3d_View)& theView ) int aGap = 20; #if OCC_VERSION_LARGE > 0x06080000 -#ifdef OCCT_DEV_COMPAT // VSR: temporarily, to be removed later and replace below implementation +#ifndef OCCT_690BETA_COMPAT // VSR: temporarily, to be removed later and replace below implementation Graphic3d_GraduatedTrihedron gt; // main params gt.SetDrawGrid(Standard_True); // to draw grid @@ -293,7 +293,7 @@ void OCCViewer_CubeAxesDlg::ApplyData( const Handle(V3d_View)& theView ) } // draw trihedron theView->GraduatedTrihedronDisplay(gt); -#else // #ifdef OCCT_DEV_COMPAT / VSR: temporarily, to be removed later and replace below implementation +#else // #ifndef OCCT_690BETA_COMPAT / VSR: temporarily, to be removed later and replace below implementation Graphic3d_GraduatedTrihedron gt; // main params gt.SetToDrawTickmarks(Standard_True); // to draw grid @@ -352,7 +352,7 @@ void OCCViewer_CubeAxesDlg::ApplyData( const Handle(V3d_View)& theView ) gt.ChangeZAxisAspect().SetNameOffset(anAxisData[2].Offset + aGap); // see above // draw trihedron theView->GraduatedTrihedronDisplay(gt); -#endif // #ifdef OCCT_DEV_COMPAT / VSR: temporarily, to be removed later and replace below implementation +#endif // #ifdef OCCT_690BETA_COMPAT / VSR: temporarily, to be removed later and replace below implementation #else theView->GraduatedTrihedronDisplay( anAxisData[0].Name.toLatin1().constData(),