Salome HOME
updated copyright message
[modules/geom.git] / src / GEOMUtils / GEOMUtils_TrsfCurve2d.hxx
index 9d14fc7603e70d981f6d150918231452743214b0..e41af4ce4174cb26272214122cee9075a61c78c4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2015-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 #include <GEOMUtils_Trsf2d.hxx>
 
-#include <Basics_OCCTVersion.hxx>
-
 #include <Geom2dHatch_Hatcher.hxx>
 #include <GeomAbs_IsoType.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TColStd_HArray1OfReal.hxx>
 #include <TopoDS_Face.hxx>
 
+#include <Basics_OCCTVersion.hxx>
+
 
 namespace GEOMUtils
 {
@@ -39,6 +39,9 @@ namespace GEOMUtils
    */
   class TrsfCurve2d : public Adaptor2d_Curve2d
   {
+#if OCC_VERSION_LARGE >= 0x07070000
+  DEFINE_STANDARD_RTTIEXT(TrsfCurve2d, Adaptor2d_Curve2d)
+#endif
 
   public:
     
@@ -111,7 +114,11 @@ namespace GEOMUtils
     /**
      * Redefined method from the base class.
      */
+#if OCC_VERSION_LARGE < 0x07070000
     Standard_EXPORT Handle(Adaptor2d_HCurve2d) Trim
+#else
+    Standard_EXPORT Handle(Adaptor2d_Curve2d) Trim
+#endif
               (const Standard_Real First, const Standard_Real Last,
                const Standard_Real ) const;
 
@@ -235,6 +242,11 @@ namespace GEOMUtils
     Trsf2d              myTrsf;
 
   };
+
+#if OCC_VERSION_LARGE >= 0x07070000
+  DEFINE_STANDARD_HANDLE(TrsfCurve2d, Adaptor2d_Curve2d)
+#endif
+
 }
 
 #endif