]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomAlgoAPI/GeomAlgoAPI.i
Salome HOME
Issue #2024: Redesign of circle and arc of circle (validate preselected object)
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI.i
1 /* GeomAPI.i */
2 %module GeomAlgoAPI
3 %{
4   #include "GeomAlgoAPI_swig.h"
5
6   // fix for SWIG v2.0.4
7   #define SWIGPY_SLICE_ARG(obj) ((PySliceObject*)(obj))
8 %}
9
10 // import other modules
11 %import "GeomAPI.i"
12
13 // to avoid error on this
14 #define GEOMALGOAPI_EXPORT
15
16 // standard definitions
17 %include "typemaps.i"
18 %include "std_string.i"
19 %include "std_list.i"
20 %include "std_shared_ptr.i"
21
22 // shared pointers
23 %shared_ptr(GeomAlgoAPI_Boolean)
24 %shared_ptr(GeomAlgoAPI_Intersection)
25 %shared_ptr(GeomAlgoAPI_MakeShape)
26 %shared_ptr(GeomAlgoAPI_MakeShapeCustom)
27 %shared_ptr(GeomAlgoAPI_MakeShapeList)
28 %shared_ptr(GeomAlgoAPI_MakeSweep)
29 %shared_ptr(GeomAlgoAPI_PaveFiller)
30 %shared_ptr(GeomAlgoAPI_Pipe)
31 %shared_ptr(GeomAlgoAPI_Placement)
32 %shared_ptr(GeomAlgoAPI_Prism)
33 %shared_ptr(GeomAlgoAPI_Revolution)
34 %shared_ptr(GeomAlgoAPI_Rotation)
35 %shared_ptr(GeomAlgoAPI_Sewing)
36 %shared_ptr(GeomAlgoAPI_ShapeBuilder)
37 %shared_ptr(GeomAlgoAPI_Translation)
38 %shared_ptr(GeomAlgoAPI_Transform)
39 %shared_ptr(GeomAlgoAPI_Box)
40 %shared_ptr(GeomAlgoAPI_ConeSegment)
41 %shared_ptr(GeomAlgoAPI_Copy)
42 %shared_ptr(GeomAlgoAPI_Symmetry)
43
44 // all supported interfaces
45 %include "GeomAlgoAPI_MakeShape.h"
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_MakeShapeCustom.h"
52 %include "GeomAlgoAPI_MakeShapeList.h"
53 %include "GeomAlgoAPI_MakeSweep.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 %include "GeomAlgoAPI_Intersection.h"
72 %include "GeomAlgoAPI_Pipe.h"
73 %include "GeomAlgoAPI_WireBuilder.h"
74 %include "GeomAlgoAPI_Sewing.h"
75 %include "GeomAlgoAPI_ShapeBuilder.h"
76 %include "GeomAlgoAPI_Exception.h"
77 %include "GeomAlgoAPI_ShapeAPI.h"
78 %include "GeomAlgoAPI_Copy.h"
79 %include "GeomAlgoAPI_Symmetry.h"
80
81 %typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
82   $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
83 }
84 %template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;