Salome HOME
bos #29477 Information on shape in TUI. New 'shapeInfo' python method.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI.i
1 // Copyright (C) 2014-2022  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
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 %exceptionclass GeomAlgoAPI_Exception;
39
40 %exception {
41   try {
42     $action
43   }
44   catch (GeomAlgoAPI_Exception exc) {
45     // Reraise with SWIG_Python_Raise
46     SWIG_Python_Raise(SWIG_NewPointerObj((new GeomAlgoAPI_Exception(static_cast< const GeomAlgoAPI_Exception& >(exc))), SWIGTYPE_p_GeomAlgoAPI_Exception, SWIG_POINTER_OWN), "GeomAlgoAPI_Exception", SWIGTYPE_p_GeomAlgoAPI_Exception);
47     SWIG_fail;
48   }
49 }
50
51 // shared pointers
52 %shared_ptr(GeomAlgoAPI_Boolean)
53 %shared_ptr(GeomAlgoAPI_Intersection)
54 %shared_ptr(GeomAlgoAPI_MakeShape)
55 %shared_ptr(GeomAlgoAPI_MakeShapeCustom)
56 %shared_ptr(GeomAlgoAPI_MakeShapeList)
57 %shared_ptr(GeomAlgoAPI_MakeSweep)
58 %shared_ptr(GeomAlgoAPI_PaveFiller)
59 %shared_ptr(GeomAlgoAPI_Pipe)
60 %shared_ptr(GeomAlgoAPI_Placement)
61 %shared_ptr(GeomAlgoAPI_Prism)
62 %shared_ptr(GeomAlgoAPI_Revolution)
63 %shared_ptr(GeomAlgoAPI_Rotation)
64 %shared_ptr(GeomAlgoAPI_Sewing)
65 %shared_ptr(GeomAlgoAPI_SketchBuilder)
66 %shared_ptr(GeomAlgoAPI_ShapeBuilder)
67 %shared_ptr(GeomAlgoAPI_Translation)
68 %shared_ptr(GeomAlgoAPI_Transform)
69 %shared_ptr(GeomAlgoAPI_Box)
70 %shared_ptr(GeomAlgoAPI_ConeSegment)
71 %shared_ptr(GeomAlgoAPI_Copy)
72 %shared_ptr(GeomAlgoAPI_Symmetry)
73 %shared_ptr(GeomAlgoAPI_MapShapesAndAncestors)
74 %shared_ptr(GeomAlgoAPI_WireBuilder)
75
76 // all supported interfaces
77 %include "GeomAlgoAPI_MakeShape.h"
78 %include "GeomAlgoAPI_Boolean.h"
79 %include "GeomAlgoAPI_Circ2dBuilder.h"
80 %include "GeomAlgoAPI_CompoundBuilder.h"
81 %include "GeomAlgoAPI_CurveBuilder.h"
82 %include "GeomAlgoAPI_DFLoader.h"
83 %include "GeomAlgoAPI_EdgeBuilder.h"
84 %include "GeomAlgoAPI_FaceBuilder.h"
85 %include "GeomAlgoAPI_MakeShapeCustom.h"
86 %include "GeomAlgoAPI_MakeShapeList.h"
87 %include "GeomAlgoAPI_MakeSweep.h"
88 %include "GeomAlgoAPI_Transform.h"
89 %include "GeomAlgoAPI_Translation.h"
90 %include "GeomAlgoAPI_Placement.h"
91 %include "GeomAlgoAPI_PointBuilder.h"
92 %include "GeomAlgoAPI_Prism.h"
93 %include "GeomAlgoAPI_Revolution.h"
94 %include "GeomAlgoAPI_Rotation.h"
95 %include "GeomAlgoAPI_ShapeTools.h"
96 %include "GeomAlgoAPI_SketchBuilder.h"
97 %include "GeomAlgoAPI_BREPExport.h"
98 %include "GeomAlgoAPI_IGESExport.h"
99 %include "GeomAlgoAPI_STEPExport.h"
100 %include "GeomAlgoAPI_BREPImport.h"
101 %include "GeomAlgoAPI_IGESImport.h"
102 %include "GeomAlgoAPI_STEPImport.h"
103 %include "GeomAlgoAPI_Tools.h"
104 %include "GeomAlgoAPI_PaveFiller.h"
105 %include "GeomAlgoAPI_Intersection.h"
106 %include "GeomAlgoAPI_Pipe.h"
107 %include "GeomAlgoAPI_WireBuilder.h"
108 %include "GeomAlgoAPI_Sewing.h"
109 %include "GeomAlgoAPI_ShapeBuilder.h"
110 %include "GeomAlgoAPI_Exception.h"
111 %include "GeomAlgoAPI_ShapeAPI.h"
112 %include "GeomAlgoAPI_Copy.h"
113 %include "GeomAlgoAPI_Symmetry.h"
114 %include "GeomAlgoAPI_Box.h"
115 %include "GeomAlgoAPI_MapShapesAndAncestors.h"
116 %include "GeomAlgoAPI_ShapeInfo.h"
117
118 %typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & {
119   $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr<GeomAPI_Shape>(*$1)), $descriptor(std::shared_ptr<GeomAPI_Shape> *), SWIG_POINTER_OWN | 0 );
120 }
121 %template(ShapeList) std::list<std::shared_ptr<GeomAPI_Shape> >;
122 %template(ValuesList) std::list<GeomAlgoAPI_InfoValue>;