Salome HOME
Typo-fix by Kunda
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeAlgo.hxx
index 98a8c0b3fd1f441d0587dd3cc19aab1d3fe31258..2bf1412e2c9267e4eb5667a5136860108878bbf8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
 #define _GEOMAlgo_ShapeAlgo_HeaderFile
 
+#include <Basics_OCCTVersion.hxx>
+
 #include <Standard.hxx>
 #include <Standard_Macro.hxx>
 #include <TopoDS_Shape.hxx>
 #include <Standard_Real.hxx>
-#include <Handle_IntTools_Context.hxx>
+#if OCC_VERSION_LARGE > 0x06070100
+  #include <IntTools_Context.hxx>
+#else
+  #include <BOPInt_Context.hxx>
+#endif
 #include <GEOMAlgo_Algo.hxx>
 
 //=======================================================================
@@ -45,11 +51,19 @@ class GEOMAlgo_ShapeAlgo  : public GEOMAlgo_Algo
 
   //! Sets cashed geometrical tools <br>
   Standard_EXPORT
+#if OCC_VERSION_LARGE > 0x06070100
     void SetContext(const Handle(IntTools_Context)& theContext) ;
+#else
+    void SetContext(const Handle(BOPInt_Context)& theContext) ;
+#endif
 
   //! Returns cashed geometrical tools <br>
   Standard_EXPORT
-    const Handle_IntTools_Context& Context() const;
+#if OCC_VERSION_LARGE > 0x06070100
+    const Handle(IntTools_Context)& Context() const;
+#else
+    const Handle(BOPInt_Context)& Context() const;
+#endif
 
   Standard_EXPORT
     void SetShape(const TopoDS_Shape& aS) ;
@@ -80,6 +94,10 @@ protected:
   TopoDS_Shape myShape;
   Standard_Real myTolerance;
   TopoDS_Shape myResult;
-  Handle_IntTools_Context myContext;
+#if OCC_VERSION_LARGE > 0x06070100
+  Handle(IntTools_Context) myContext;
+#else
+  Handle(BOPInt_Context) myContext;
+#endif
 };
 #endif