Salome HOME
856e34e79664affc9f305d59eea65b438d88abdd
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI.i
1 /* GeomAPI.i */
2 %module GeomAlgoAPI
3 %{
4   #include "GeomAlgoAPI.h"
5   #include "GeomAlgoAPI_Boolean.h"
6   #include "GeomAlgoAPI_CompoundBuilder.h"
7   #include "GeomAlgoAPI_DFLoader.h"
8   #include "GeomAlgoAPI_EdgeBuilder.h"
9   #include "GeomAlgoAPI_FaceBuilder.h"
10   #include "GeomAlgoAPI_MakeShape.h"
11   #include "GeomAlgoAPI_MakeShapeCustom.h"
12   #include "GeomAlgoAPI_MakeShapeList.h"
13   #include "GeomAlgoAPI_MakeSweep.h"
14   #include "GeomAlgoAPI_Translation.h"
15   #include "GeomAlgoAPI_Placement.h"
16   #include "GeomAlgoAPI_PointBuilder.h"
17   #include "GeomAlgoAPI_Prism.h"
18   #include "GeomAlgoAPI_Revolution.h"
19   #include "GeomAlgoAPI_Rotation.h"
20   #include "GeomAlgoAPI_ShapeTools.h"
21   #include "GeomAlgoAPI_SketchBuilder.h"
22   #include "GeomAlgoAPI_BREPExport.h"
23   #include "GeomAlgoAPI_IGESExport.h"
24   #include "GeomAlgoAPI_STEPExport.h"
25   #include "GeomAlgoAPI_BREPImport.h"
26   #include "GeomAlgoAPI_IGESImport.h"
27   #include "GeomAlgoAPI_STEPImport.h"
28   #include "GeomAlgoAPI_Tools.h"
29   #include "GeomAlgoAPI_Transform.h"
30   #include "GeomAlgoAPI_PaveFiller.h"
31
32   #include <memory>
33   #include <string>
34   #include <list>
35 %}
36
37 // to avoid error on this
38 #define GEOMALGOAPI_EXPORT
39
40 // standard definitions
41 %include "typemaps.i"
42 %include "std_string.i"
43 %include "std_list.i"
44 %include "std_shared_ptr.i"
45
46 // all supported interfaces
47 %include "GeomAlgoAPI_Boolean.h"
48 %include "GeomAlgoAPI_CompoundBuilder.h"
49 %include "GeomAlgoAPI_DFLoader.h"
50 %include "GeomAlgoAPI_EdgeBuilder.h"
51 %include "GeomAlgoAPI_FaceBuilder.h"
52 %include "GeomAlgoAPI_MakeShape.h"
53 %include "GeomAlgoAPI_MakeShapeCustom.h"
54 %include "GeomAlgoAPI_MakeShapeList.h"
55 %include "GeomAlgoAPI_MakeSweep.h"
56 %include "GeomAlgoAPI_Translation.h"
57 %include "GeomAlgoAPI_Placement.h"
58 %include "GeomAlgoAPI_PointBuilder.h"
59 %include "GeomAlgoAPI_Prism.h"
60 %include "GeomAlgoAPI_Revolution.h"
61 %include "GeomAlgoAPI_Rotation.h"
62 %include "GeomAlgoAPI_ShapeTools.h"
63 %include "GeomAlgoAPI_SketchBuilder.h"
64 %include "GeomAlgoAPI_BREPExport.h"
65 %include "GeomAlgoAPI_IGESExport.h"
66 %include "GeomAlgoAPI_STEPExport.h"
67 %include "GeomAlgoAPI_BREPImport.h"
68 %include "GeomAlgoAPI_IGESImport.h"
69 %include "GeomAlgoAPI_STEPImport.h"
70 %include "GeomAlgoAPI_Tools.h"
71 %include "GeomAlgoAPI_Transform.h"
72 %include "GeomAlgoAPI_PaveFiller.h"
73
74 %typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
75   $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
76 }
77 %template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;