]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix GeomAlgoAPI SWIG wrapper to use types from GeomAPI
authorspo <sergey.pokhodenko@opencascade.com>
Wed, 15 Jun 2016 08:10:58 +0000 (11:10 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:09 +0000 (14:41 +0300)
src/GeomAlgoAPI/GeomAlgoAPI.i
src/GeomAlgoAPI/GeomAlgoAPI_swig.h

index cd79ade66626b8d1923c62f036fce8d89b465bdd..c6d4d79535e52241daf72a37880a5db51f963a61 100644 (file)
@@ -4,6 +4,9 @@
   #include "GeomAlgoAPI_swig.h"
 %}
 
+// import other modules
+%import "GeomAPI.i"
+
 // to avoid error on this
 #define GEOMALGOAPI_EXPORT
 
 %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"
index 2eb6c3f913ca0bdad60b38977f3dfd865c3b82f2..226338bf49ad6a0c99673321029e5e8a5fb8646e 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef SRC_GEOMALGOAPI_GEOMALGOAPI_SWIG_H_
 #define SRC_GEOMALGOAPI_GEOMALGOAPI_SWIG_H_
 
+  #include <GeomAPI_swig.h>
+
   #include "GeomAlgoAPI.h"
   #include "GeomAlgoAPI_MakeShape.h"
   #include "GeomAlgoAPI_Boolean.h"