]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h
Salome HOME
Fixed validators for Boolean and Intersection
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_CompoundBuilder.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAlgoAPI_CompoundBuilder.h
4 // Created:     24 Apr 2014
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef GeomAlgoAPI_CompoundBuilder_H_
8 #define GeomAlgoAPI_CompoundBuilder_H_
9
10 #include <GeomAlgoAPI.h>
11 #include <GeomAPI_Shape.h>
12 #include <GeomAPI_Pnt.h>
13 #include <GeomAPI_Dir.h>
14 #include <memory>
15
16 #include <list>
17
18 /**\class GeomAlgoAPI_CompoundBuilder
19  * \ingroup DataAlgo
20  * \brief Allows to create face-shapes by different parameters
21  */
22
23 class GEOMALGOAPI_EXPORT GeomAlgoAPI_CompoundBuilder
24 {
25  public:
26   /// Creates compund of the given shapes
27   /// \param theShapes a list of shapes
28   static std::shared_ptr<GeomAPI_Shape> compound(
29       std::list<std::shared_ptr<GeomAPI_Shape> > theShapes);
30
31   /// Produces the integerr identifier of the shape theSub in theContext (needed for 
32   /// groups export to old GEOM)
33   /// \returns zero if theSub not found in theContext
34   static int id(
35       std::shared_ptr<GeomAPI_Shape> theContext, std::shared_ptr<GeomAPI_Shape> theSub);
36 };
37
38 #endif