Salome HOME
Fix for the Coding rules.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI.i
1 // Copyright (C) 2014-2017  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or
18 // email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 //
20
21 /* GeomAPI.i */
22 %module GeomAlgoAPI
23 %{
24   #include "GeomAlgoAPI_swig.h"
25 %}
26
27 // import other modules
28 %import "GeomAPI.i"
29
30 // to avoid error on this
31 #define GEOMALGOAPI_EXPORT
32
33 // standard definitions
34 %include "typemaps.i"
35 %include "std_string.i"
36 %include "std_list.i"
37 %include "std_shared_ptr.i"
38
39 // shared pointers
40 %shared_ptr(GeomAlgoAPI_Boolean)
41 %shared_ptr(GeomAlgoAPI_Intersection)
42 %shared_ptr(GeomAlgoAPI_MakeShape)
43 %shared_ptr(GeomAlgoAPI_MakeShapeCustom)
44 %shared_ptr(GeomAlgoAPI_MakeShapeList)
45 %shared_ptr(GeomAlgoAPI_MakeSweep)
46 %shared_ptr(GeomAlgoAPI_PaveFiller)
47 %shared_ptr(GeomAlgoAPI_Pipe)
48 %shared_ptr(GeomAlgoAPI_Placement)
49 %shared_ptr(GeomAlgoAPI_Prism)
50 %shared_ptr(GeomAlgoAPI_Revolution)
51 %shared_ptr(GeomAlgoAPI_Rotation)
52 %shared_ptr(GeomAlgoAPI_Sewing)
53 %shared_ptr(GeomAlgoAPI_ShapeBuilder)
54 %shared_ptr(GeomAlgoAPI_Translation)
55 %shared_ptr(GeomAlgoAPI_Transform)
56 %shared_ptr(GeomAlgoAPI_Box)
57 %shared_ptr(GeomAlgoAPI_ConeSegment)
58 %shared_ptr(GeomAlgoAPI_Copy)
59 %shared_ptr(GeomAlgoAPI_Symmetry)
60
61 // all supported interfaces
62 %include "GeomAlgoAPI_MakeShape.h"
63 %include "GeomAlgoAPI_Boolean.h"
64 %include "GeomAlgoAPI_CompoundBuilder.h"
65 %include "GeomAlgoAPI_DFLoader.h"
66 %include "GeomAlgoAPI_EdgeBuilder.h"
67 %include "GeomAlgoAPI_FaceBuilder.h"
68 %include "GeomAlgoAPI_MakeShapeCustom.h"
69 %include "GeomAlgoAPI_MakeShapeList.h"
70 %include "GeomAlgoAPI_MakeSweep.h"
71 %include "GeomAlgoAPI_Translation.h"
72 %include "GeomAlgoAPI_Placement.h"
73 %include "GeomAlgoAPI_PointBuilder.h"
74 %include "GeomAlgoAPI_Prism.h"
75 %include "GeomAlgoAPI_Revolution.h"
76 %include "GeomAlgoAPI_Rotation.h"
77 %include "GeomAlgoAPI_ShapeTools.h"
78 %include "GeomAlgoAPI_SketchBuilder.h"
79 %include "GeomAlgoAPI_BREPExport.h"
80 %include "GeomAlgoAPI_IGESExport.h"
81 %include "GeomAlgoAPI_STEPExport.h"
82 %include "GeomAlgoAPI_BREPImport.h"
83 %include "GeomAlgoAPI_IGESImport.h"
84 %include "GeomAlgoAPI_STEPImport.h"
85 %include "GeomAlgoAPI_Tools.h"
86 %include "GeomAlgoAPI_Transform.h"
87 %include "GeomAlgoAPI_PaveFiller.h"
88 %include "GeomAlgoAPI_Intersection.h"
89 %include "GeomAlgoAPI_Pipe.h"
90 %include "GeomAlgoAPI_WireBuilder.h"
91 %include "GeomAlgoAPI_Sewing.h"
92 %include "GeomAlgoAPI_ShapeBuilder.h"
93 %include "GeomAlgoAPI_Exception.h"
94 %include "GeomAlgoAPI_ShapeAPI.h"
95 %include "GeomAlgoAPI_Copy.h"
96 %include "GeomAlgoAPI_Symmetry.h"
97 %include "GeomAlgoAPI_Box.h"
98
99 %typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
100   $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
101 }
102 %template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;