X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI.i;h=c6d4d79535e52241daf72a37880a5db51f963a61;hb=081612e9534dedf1c51b7c22f2fe2b467e5a112f;hp=b93be2a7e5af7c1f565a014a5845e2e60088d79f;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI.i b/src/GeomAlgoAPI/GeomAlgoAPI.i index b93be2a7e..c6d4d7953 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI.i +++ b/src/GeomAlgoAPI/GeomAlgoAPI.i @@ -1,13 +1,12 @@ /* GeomAPI.i */ %module GeomAlgoAPI %{ - #include "GeomAlgoAPI.h" - #include "GeomAlgoAPI_FaceBuilder.h" - #include "GeomAlgoAPI_EdgeBuilder.h" - #include "GeomAlgoAPI_PointBuilder.h" - #include "GeomAlgoAPI_SketchBuilder.h" + #include "GeomAlgoAPI_swig.h" %} +// import other modules +%import "GeomAPI.i" + // to avoid error on this #define GEOMALGOAPI_EXPORT @@ -17,10 +16,58 @@ %include "std_list.i" %include "std_shared_ptr.i" -%template(ShapeList) std::list >; +// shared pointers +%shared_ptr(GeomAlgoAPI_Boolean) +%shared_ptr(GeomAlgoAPI_Intersection) +%shared_ptr(GeomAlgoAPI_MakeShape) +%shared_ptr(GeomAlgoAPI_MakeShapeCustom) +%shared_ptr(GeomAlgoAPI_MakeShapeList) +%shared_ptr(GeomAlgoAPI_MakeSweep) +%shared_ptr(GeomAlgoAPI_PaveFiller) +%shared_ptr(GeomAlgoAPI_Pipe) +%shared_ptr(GeomAlgoAPI_Placement) +%shared_ptr(GeomAlgoAPI_Prism) +%shared_ptr(GeomAlgoAPI_Revolution) +%shared_ptr(GeomAlgoAPI_Rotation) +%shared_ptr(GeomAlgoAPI_Sewing) +%shared_ptr(GeomAlgoAPI_ShapeBuilder) +%shared_ptr(GeomAlgoAPI_Translation) +%shared_ptr(GeomAlgoAPI_Transform) // all supported interfaces -%include "GeomAlgoAPI_FaceBuilder.h" +%include "GeomAlgoAPI_MakeShape.h" +%include "GeomAlgoAPI_Boolean.h" +%include "GeomAlgoAPI_CompoundBuilder.h" +%include "GeomAlgoAPI_DFLoader.h" %include "GeomAlgoAPI_EdgeBuilder.h" +%include "GeomAlgoAPI_FaceBuilder.h" +%include "GeomAlgoAPI_MakeShapeCustom.h" +%include "GeomAlgoAPI_MakeShapeList.h" +%include "GeomAlgoAPI_MakeSweep.h" +%include "GeomAlgoAPI_Translation.h" +%include "GeomAlgoAPI_Placement.h" %include "GeomAlgoAPI_PointBuilder.h" +%include "GeomAlgoAPI_Prism.h" +%include "GeomAlgoAPI_Revolution.h" +%include "GeomAlgoAPI_Rotation.h" +%include "GeomAlgoAPI_ShapeTools.h" %include "GeomAlgoAPI_SketchBuilder.h" +%include "GeomAlgoAPI_BREPExport.h" +%include "GeomAlgoAPI_IGESExport.h" +%include "GeomAlgoAPI_STEPExport.h" +%include "GeomAlgoAPI_BREPImport.h" +%include "GeomAlgoAPI_IGESImport.h" +%include "GeomAlgoAPI_STEPImport.h" +%include "GeomAlgoAPI_Tools.h" +%include "GeomAlgoAPI_Transform.h" +%include "GeomAlgoAPI_PaveFiller.h" +%include "GeomAlgoAPI_Intersection.h" +%include "GeomAlgoAPI_Pipe.h" +%include "GeomAlgoAPI_WireBuilder.h" +%include "GeomAlgoAPI_Sewing.h" +%include "GeomAlgoAPI_ShapeBuilder.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 ); +} +%template(ShapeList) std::list >;