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