Salome HOME
Add copyright header according to request of CEA from 06.06.2017
[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 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
18 //
19
20 /* GeomAPI.i */
21 %module GeomAlgoAPI
22 %{
23   #include "GeomAlgoAPI_swig.h"
24 %}
25
26 // import other modules
27 %import "GeomAPI.i"
28
29 // to avoid error on this
30 #define GEOMALGOAPI_EXPORT
31
32 // standard definitions
33 %include "typemaps.i"
34 %include "std_string.i"
35 %include "std_list.i"
36 %include "std_shared_ptr.i"
37
38 // shared pointers
39 %shared_ptr(GeomAlgoAPI_Boolean)
40 %shared_ptr(GeomAlgoAPI_Intersection)
41 %shared_ptr(GeomAlgoAPI_MakeShape)
42 %shared_ptr(GeomAlgoAPI_MakeShapeCustom)
43 %shared_ptr(GeomAlgoAPI_MakeShapeList)
44 %shared_ptr(GeomAlgoAPI_MakeSweep)
45 %shared_ptr(GeomAlgoAPI_PaveFiller)
46 %shared_ptr(GeomAlgoAPI_Pipe)
47 %shared_ptr(GeomAlgoAPI_Placement)
48 %shared_ptr(GeomAlgoAPI_Prism)
49 %shared_ptr(GeomAlgoAPI_Revolution)
50 %shared_ptr(GeomAlgoAPI_Rotation)
51 %shared_ptr(GeomAlgoAPI_Sewing)
52 %shared_ptr(GeomAlgoAPI_ShapeBuilder)
53 %shared_ptr(GeomAlgoAPI_Translation)
54 %shared_ptr(GeomAlgoAPI_Transform)
55 %shared_ptr(GeomAlgoAPI_Box)
56 %shared_ptr(GeomAlgoAPI_ConeSegment)
57 %shared_ptr(GeomAlgoAPI_Copy)
58 %shared_ptr(GeomAlgoAPI_Symmetry)
59
60 // all supported interfaces
61 %include "GeomAlgoAPI_MakeShape.h"
62 %include "GeomAlgoAPI_Boolean.h"
63 %include "GeomAlgoAPI_CompoundBuilder.h"
64 %include "GeomAlgoAPI_DFLoader.h"
65 %include "GeomAlgoAPI_EdgeBuilder.h"
66 %include "GeomAlgoAPI_FaceBuilder.h"
67 %include "GeomAlgoAPI_MakeShapeCustom.h"
68 %include "GeomAlgoAPI_MakeShapeList.h"
69 %include "GeomAlgoAPI_MakeSweep.h"
70 %include "GeomAlgoAPI_Translation.h"
71 %include "GeomAlgoAPI_Placement.h"
72 %include "GeomAlgoAPI_PointBuilder.h"
73 %include "GeomAlgoAPI_Prism.h"
74 %include "GeomAlgoAPI_Revolution.h"
75 %include "GeomAlgoAPI_Rotation.h"
76 %include "GeomAlgoAPI_ShapeTools.h"
77 %include "GeomAlgoAPI_SketchBuilder.h"
78 %include "GeomAlgoAPI_BREPExport.h"
79 %include "GeomAlgoAPI_IGESExport.h"
80 %include "GeomAlgoAPI_STEPExport.h"
81 %include "GeomAlgoAPI_BREPImport.h"
82 %include "GeomAlgoAPI_IGESImport.h"
83 %include "GeomAlgoAPI_STEPImport.h"
84 %include "GeomAlgoAPI_Tools.h"
85 %include "GeomAlgoAPI_Transform.h"
86 %include "GeomAlgoAPI_PaveFiller.h"
87 %include "GeomAlgoAPI_Intersection.h"
88 %include "GeomAlgoAPI_Pipe.h"
89 %include "GeomAlgoAPI_WireBuilder.h"
90 %include "GeomAlgoAPI_Sewing.h"
91 %include "GeomAlgoAPI_ShapeBuilder.h"
92 %include "GeomAlgoAPI_Exception.h"
93 %include "GeomAlgoAPI_ShapeAPI.h"
94 %include "GeomAlgoAPI_Copy.h"
95 %include "GeomAlgoAPI_Symmetry.h"
96
97 %typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
98   $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
99 }
100 %template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;