Salome HOME
Fix for issue #1049
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Partition.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAlgoAPI_Partition.h
4 // Created:     21 Aug 2015
5 // Author:      Sergey POKHODENKO
6
7 #ifndef GeomAlgoAPI_Partition_H_
8 #define GeomAlgoAPI_Partition_H_
9
10 #include <GeomAlgoAPI.h>
11 #include <GeomAlgoAPI_MakeShape.h>
12
13 #include <GeomAPI_Shape.h>
14
15 /// \class GeomAlgoAPI_Partition
16 /// \ingroup DataAlgo
17 /// \brief Allows to perform of partition operations
18 class GeomAlgoAPI_Partition : public GeomAlgoAPI_MakeShape
19 {
20 public:
21   /// \brief Creates common partition operation.
22   /// \param[in] theObjects the main shape.
23   /// \param[in] theTools  second shape.
24   /// \return a solid as result of operation.
25   GEOMALGOAPI_EXPORT static std::shared_ptr<GeomAPI_Shape> make(const ListOfShape& theObjects,
26                                                                 const ListOfShape& theTools);
27
28   /// Constructor.
29   GEOMALGOAPI_EXPORT GeomAlgoAPI_Partition(const ListOfShape& theObjects,
30                                            const ListOfShape& theTools);
31
32 private:
33   /// Builds resulting shape.
34   void build(const ListOfShape& theObjects,
35              const ListOfShape& theTools);
36 };
37
38 #endif