Salome HOME
Fixed addAxis import
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_CompoundBuilder.h
index bf9f8374a1d544c6b7a11e0f05c7653ce97a4a97..36caf87794da032c67ffc031e8565bc367081ac1 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        GeomAlgoAPI_CompoundBuilder.h
 // Created:     24 Apr 2014
 // Author:      Natalia ERMOLAEVA
@@ -9,7 +11,7 @@
 #include <GeomAPI_Shape.h>
 #include <GeomAPI_Pnt.h>
 #include <GeomAPI_Dir.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 #include <list>
 
@@ -23,8 +25,14 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_CompoundBuilder
  public:
   /// Creates compund of the given shapes
   /// \param theShapes a list of shapes
-  static boost::shared_ptr<GeomAPI_Shape> compound(
-      std::list<boost::shared_ptr<GeomAPI_Shape> > theShapes);
+  static std::shared_ptr<GeomAPI_Shape> compound(
+      std::list<std::shared_ptr<GeomAPI_Shape> > theShapes);
+
+  /// Produces the integerr identifier of the shape theSub in theContext (needed for 
+  /// groups export to old GEOM)
+  /// \returns zero if theSub not found in theContext
+  static int id(
+      std::shared_ptr<GeomAPI_Shape> theContext, std::shared_ptr<GeomAPI_Shape> theSub);
 };
 
 #endif