From: spo Date: Wed, 15 Jun 2016 08:10:58 +0000 (+0300) Subject: Fix GeomAlgoAPI SWIG wrapper to use types from GeomAPI X-Git-Tag: V_2.4.0~91^2~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c6f6500a387792d7ade99fff6ce128567bbc23b;p=modules%2Fshaper.git Fix GeomAlgoAPI SWIG wrapper to use types from GeomAPI --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI.i b/src/GeomAlgoAPI/GeomAlgoAPI.i index cd79ade66..c6d4d7953 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI.i +++ b/src/GeomAlgoAPI/GeomAlgoAPI.i @@ -4,6 +4,9 @@ #include "GeomAlgoAPI_swig.h" %} +// import other modules +%import "GeomAPI.i" + // to avoid error on this #define GEOMALGOAPI_EXPORT @@ -13,6 +16,24 @@ %include "std_list.i" %include "std_shared_ptr.i" +// 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_MakeShape.h" %include "GeomAlgoAPI_Boolean.h" diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_swig.h b/src/GeomAlgoAPI/GeomAlgoAPI_swig.h index 2eb6c3f91..226338bf4 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_swig.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_swig.h @@ -7,6 +7,8 @@ #ifndef SRC_GEOMALGOAPI_GEOMALGOAPI_SWIG_H_ #define SRC_GEOMALGOAPI_GEOMALGOAPI_SWIG_H_ + #include + #include "GeomAlgoAPI.h" #include "GeomAlgoAPI_MakeShape.h" #include "GeomAlgoAPI_Boolean.h"