From: nds Date: Thu, 25 Jun 2015 10:33:35 +0000 (+0300) Subject: Issue #634 API must be wrapped by SWIG X-Git-Tag: V_1.3.0~187 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe702b25ca5829b28290fe15dc8784c670dd995f;p=modules%2Fshaper.git Issue #634 API must be wrapped by SWIG BREP/IGES/STEP Import/Exort only a not wrapped. --- diff --git a/src/GeomAPI/GeomAPI.i b/src/GeomAPI/GeomAPI.i index 8fff6a79f..95c6a128a 100644 --- a/src/GeomAPI/GeomAPI.i +++ b/src/GeomAPI/GeomAPI.i @@ -2,24 +2,29 @@ %module GeomAPI %{ #include "GeomAPI.h" - #include "GeomAPI_Interface.h" - #include "GeomAPI_Shape.h" - #include "GeomAPI_ShapeExplorer.h" #include "GeomAPI_AISObject.h" - #include "GeomAPI_Circ2d.h" + #include "GeomAPI_Ax1.h" + #include "GeomAPI_Ax3.h" #include "GeomAPI_Circ.h" + #include "GeomAPI_Circ2d.h" #include "GeomAPI_Curve.h" #include "GeomAPI_DataMapOfShapeShape.h" - #include "GeomAPI_Dir2d.h" #include "GeomAPI_Dir.h" + #include "GeomAPI_Dir2d.h" #include "GeomAPI_Edge.h" + #include "GeomAPI_Face.h" + #include "GeomAPI_ICustomPrs.h" + #include "GeomAPI_Interface.h" #include "GeomAPI_IPresentable.h" - #include "GeomAPI_Lin2d.h" #include "GeomAPI_Lin.h" + #include "GeomAPI_Lin2d.h" #include "GeomAPI_PlanarEdges.h" #include "GeomAPI_Pln.h" - #include "GeomAPI_Pnt2d.h" #include "GeomAPI_Pnt.h" + #include "GeomAPI_Pnt2d.h" + #include "GeomAPI_Shape.h" + #include "GeomAPI_ShapeExplorer.h" + #include "GeomAPI_Vertex.h" #include "GeomAPI_XY.h" #include "GeomAPI_XYZ.h" @@ -37,44 +42,54 @@ // shared pointers %shared_ptr(GeomAPI_AISObject) -%shared_ptr(GeomAPI_Circ2d) +%shared_ptr(GeomAPI_Ax1) +%shared_ptr(GeomAPI_Ax3) %shared_ptr(GeomAPI_Circ) +%shared_ptr(GeomAPI_Circ2d) %shared_ptr(GeomAPI_Curve) %shared_ptr(GeomAPI_DataMapOfShapeShape) -%shared_ptr(GeomAPI_Dir2d) %shared_ptr(GeomAPI_Dir) +%shared_ptr(GeomAPI_Dir2d) %shared_ptr(GeomAPI_Edge) +%shared_ptr(GeomAPI_Face) +%shared_ptr(GeomAPI_ICustomPrs) %shared_ptr(GeomAPI_Interface) %shared_ptr(GeomAPI_IPresentable) -%shared_ptr(GeomAPI_Lin2d) %shared_ptr(GeomAPI_Lin) +%shared_ptr(GeomAPI_Lin2d) %shared_ptr(GeomAPI_PlanarEdges) %shared_ptr(GeomAPI_Pln) -%shared_ptr(GeomAPI_Pnt2d) %shared_ptr(GeomAPI_Pnt) +%shared_ptr(GeomAPI_Pnt2d) %shared_ptr(GeomAPI_Shape) %shared_ptr(GeomAPI_ShapeExplorer) +%shared_ptr(GeomAPI_Vertex) %shared_ptr(GeomAPI_XY) %shared_ptr(GeomAPI_XYZ) + // all supported interfaces -%include "GeomAPI_Interface.h" -%include "GeomAPI_Shape.h" -%include "GeomAPI_ShapeExplorer.h" %include "GeomAPI_AISObject.h" -%include "GeomAPI_Circ2d.h" +%include "GeomAPI_Ax1.h" +%include "GeomAPI_Ax3.h" %include "GeomAPI_Circ.h" +%include "GeomAPI_Circ2d.h" %include "GeomAPI_Curve.h" %include "GeomAPI_DataMapOfShapeShape.h" -%include "GeomAPI_Dir2d.h" %include "GeomAPI_Dir.h" +%include "GeomAPI_Dir2d.h" %include "GeomAPI_Edge.h" +%include "GeomAPI_Face.h" +%include "GeomAPI_ICustomPrs.h" +%include "GeomAPI_Interface.h" %include "GeomAPI_IPresentable.h" -%include "GeomAPI_Lin2d.h" %include "GeomAPI_Lin.h" +%include "GeomAPI_Lin2d.h" %include "GeomAPI_PlanarEdges.h" %include "GeomAPI_Pln.h" -%include "GeomAPI_Pnt2d.h" %include "GeomAPI_Pnt.h" +%include "GeomAPI_Pnt2d.h" +%include "GeomAPI_Shape.h" +%include "GeomAPI_Vertex.h" %include "GeomAPI_XY.h" %include "GeomAPI_XYZ.h" diff --git a/src/GeomAlgoAPI/GeomAlgoAPI.i b/src/GeomAlgoAPI/GeomAlgoAPI.i index 4f7402cf0..806c443c9 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI.i +++ b/src/GeomAlgoAPI/GeomAlgoAPI.i @@ -11,12 +11,14 @@ #include "GeomAlgoAPI_MakeShape.h" #include "GeomAlgoAPI_MakeShapeList.h" #include "GeomAlgoAPI_Movement.h" + #include "GeomAlgoAPI_Placement.h" #include "GeomAlgoAPI_PointBuilder.h" #include "GeomAlgoAPI_Prism.h" #include "GeomAlgoAPI_Revolution.h" #include "GeomAlgoAPI_Rotation.h" #include "GeomAlgoAPI_ShapeProps.h" #include "GeomAlgoAPI_SketchBuilder.h" + #include "GeomAlgoAPI_Tools.h" #include #include @@ -42,12 +44,14 @@ %include "GeomAlgoAPI_MakeShape.h" %include "GeomAlgoAPI_MakeShapeList.h" %include "GeomAlgoAPI_Movement.h" +%include "GeomAlgoAPI_Placement.h" %include "GeomAlgoAPI_PointBuilder.h" %include "GeomAlgoAPI_Prism.h" %include "GeomAlgoAPI_Revolution.h" %include "GeomAlgoAPI_Rotation.h" %include "GeomAlgoAPI_ShapeProps.h" %include "GeomAlgoAPI_SketchBuilder.h" +%include "GeomAlgoAPI_Tools.h" %typemap(out) std::list< std::shared_ptr< GeomAPI_Shape > >::value_type & { $result = SWIG_NewPointerObj(SWIG_as_voidptr(new std::shared_ptr(*$1)), $descriptor(std::shared_ptr *), SWIG_POINTER_OWN | 0 );