Salome HOME
OCCT dev (6.8.0) compatibility
authorvsr <vsr@opencascade.com>
Mon, 27 Oct 2014 10:11:49 +0000 (13:11 +0300)
committervsr <vsr@opencascade.com>
Mon, 27 Oct 2014 10:11:49 +0000 (13:11 +0300)
src/CAF/CAF_Study.cxx
src/DDS/DDS_Dictionary.cxx
src/LightApp/LightApp_Application.cxx
src/OCCViewer/OCCViewer_ClippingDlg.cxx
src/OCCViewer/OCCViewer_CubeAxesDlg.cxx
src/OCCViewer/OCCViewer_ViewModel.cxx
src/OCCViewer/OCCViewer_ViewModel.h
src/OCCViewer/OCCViewer_ViewWindow.cxx

index 0b60a95fda03f699e000f94fcb53f529a18e3ee5..3b69c88ebd06bac6a02cdb64aa4c1eb052736c75 100755 (executable)
@@ -25,8 +25,6 @@
 #include "CAF_Tools.h"
 #include "CAF_Application.h"
 
-#include <Basics_OCCTVersion.hxx>
-
 #include <SUIT_Desktop.h>
 #include <SUIT_MessageBox.h>
 #include <SUIT_Application.h>
index 823bfe1a881ae57b062102351ef331c55334a622..d22fdb0ba2279d39da44c0e8960efcbd371507ce 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "DDS_KeyWords.h"
 
-#include <Basics_OCCTVersion.hxx>
-
 #include <LDOMString.hxx>
 #include <LDOMParser.hxx>
 
index 3017896cfafb27abbaaf4cc235cd83743b3dd3db..ef2f6c55ddec9bd91a2ba4bef90220834f35f925 100644 (file)
@@ -58,9 +58,7 @@
 #include "LightApp_WgViewModel.h"
 #include "LightApp_FullScreenHelper.h"
 
-
 #include <GUI_version.h>
-#include <Basics_OCCTVersion.hxx>
 
 #include <SALOME_Event.h>
 
index ec75a10529ccbf4c4e93c1cfaddddf4078b41f33..d6359071f567dd7c73a164d6ceb3023f18a825f3 100644 (file)
@@ -37,6 +37,8 @@
 #include "OCCViewer_ViewManager.h"
 #include "OCCViewer_ClipPlaneInteractor.h"
 
+#include <Basics_OCCTVersion.hxx>
+
 #include <V3d_View.hxx>
 #include <Visual3d_View.hxx>
 #include <Geom_Plane.hxx>
@@ -92,7 +94,17 @@ void getMinMaxFromContext( Handle(AIS_InteractiveContext) ic,
       if ( !aPrs->IsEmpty() && !aPrs->IsInfinite() ) {
         isFound = true;
         double xmin, ymin, zmin, xmax, ymax, zmax;
+#if OCC_VERSION_LARGE > 0x06070100
+       Bnd_Box aBox = aPrs->MinMaxValues();
+       xmin = aBox.CornerMin().X();
+       ymin = aBox.CornerMin().Y();
+       zmin = aBox.CornerMin().Z();
+       xmax = aBox.CornerMax().X();
+       ymax = aBox.CornerMax().Y();
+       zmax = aBox.CornerMax().Z();
+#else
         aPrs->MinMaxValues( xmin, ymin, zmin, xmax, ymax, zmax );
+#endif
         aXMin = qMin( aXMin, xmin );  aXMax = qMax( aXMax, xmax );
         aYMin = qMin( aYMin, ymin );  aYMax = qMax( aYMax, ymax );
         aZMin = qMin( aZMin, zmin );  aZMax = qMax( aZMax, zmax );
index 31561c3a5893a5c5396acecf28e1adf77777f373..c62789d55bc8612dd626d52683a5e55c3802870d 100644 (file)
@@ -29,8 +29,6 @@
 #include "QtxAction.h"
 #include "QtxIntSpinBox.h"
 
-#include <Basics_OCCTVersion.hxx>
-
 #include <QCheckBox>
 #include <QGroupBox>
 #include <QLineEdit>
index 64e558564f96c8a5acfbaad70984d93c67b91ce4..c11d24ca0c9f0cfd56dd6c561d83157afaf1b19f 100755 (executable)
@@ -36,6 +36,8 @@
 
 #include "ViewerData_AISShape.hxx"
 
+#include <Basics_OCCTVersion.hxx>
+
 #include "QtxActionToolMgr.h"
 #include "QtxBackgroundTool.h"
 
@@ -956,7 +958,17 @@ double OCCViewer_Viewer::computeSceneSize(const Handle(V3d_View)& view3d) const
   double aMaxSide = 0;
   double Xmin = 0, Ymin = 0, Zmin = 0, Xmax = 0, Ymax = 0, Zmax = 0;
 
+#if OCC_VERSION_LARGE > 0x06070100
+  Bnd_Box aBox = view3d->View()->MinMaxValues();
+  Xmin = aBox.CornerMin().X();
+  Ymin = aBox.CornerMin().Y();
+  Zmin = aBox.CornerMin().Z();
+  Xmax = aBox.CornerMax().X();
+  Ymax = aBox.CornerMax().Y();
+  Zmax = aBox.CornerMax().Z();
+#else
   view3d->View()->MinMaxValues( Xmin, Ymin, Zmin, Xmax, Ymax, Zmax );
+#endif
 
   if ( Xmin != RealFirst() && Ymin != RealFirst() && Zmin != RealFirst() &&
        Xmax != RealLast()  && Ymax != RealLast()  && Zmax != RealLast() )
index 5ca95ef263c4f5a70746d9c00cef6ddd9983b605..685e362b029a80e8950426bd7e7f0fa16589115f 100755 (executable)
@@ -36,7 +36,6 @@
 #include <V3d_View.hxx>
 #include <AIS_Trihedron.hxx>
 #include <AIS_InteractiveContext.hxx>
-#include <Basics_OCCTVersion.hxx>
 #include <Graphic3d_SequenceOfHClipPlane.hxx>
 
 class QKeyEvent;
index 4f38b4110457ec4c72197a4a339772a760272b08..621df3289406cb5e1309662700dd4dc1f4d885de 100755 (executable)
@@ -651,7 +651,17 @@ bool OCCViewer_ViewWindow::computeGravityCenter( double& theX, double& theY, dou
       continue;
     }
 
+#if OCC_VERSION_LARGE > 0x06070100
+    Bnd_Box aBox = aStructure->MinMaxValues();
+    aXmin = aBox.CornerMin().X();
+    aYmin = aBox.CornerMin().Y();
+    aZmin = aBox.CornerMin().Z();
+    aXmax = aBox.CornerMax().X();
+    aYmax = aBox.CornerMax().Y();
+    aZmax = aBox.CornerMax().Z();
+#else
     aStructure->MinMaxValues( aXmin, aYmin, aZmin, aXmax, aYmax, aZmax );
+#endif
 
     // Infinite structures are skipped
     Standard_Real aLIM = ShortRealLast() - 1.0;