Salome HOME
Add GeomAPI to ModelHighAPI and others
[modules/shaper.git] / src / GeomDataAPI / GeomDataAPI.i
1 /* GeomDataAPI.i */
2 %module GeomDataAPI
3 %{
4   #include "GeomDataAPI_swig.h"
5 %}
6
7 // import other modules
8 %import "GeomAPI.i"
9 %import "ModelAPI.i"
10
11 // to avoid error on this
12 #define GEOMDATAAPI_EXPORT
13 #define MODELAPI_EXPORT
14
15 // standard definitions
16 %include "typemaps.i"
17 %include "std_string.i"
18 %include "std_list.i"
19 %include "std_shared_ptr.i"
20
21 %shared_ptr(GeomDataAPI_Point)
22 %shared_ptr(GeomDataAPI_Dir)
23 %shared_ptr(GeomDataAPI_Point2D)
24
25 // all supported interfaces
26 %include "GeomDataAPI_Point.h"
27 %include "GeomDataAPI_Dir.h"
28 %include "GeomDataAPI_Point2D.h"
29
30 template<class T> std::shared_ptr<T> castTo(std::shared_ptr<ModelAPI_Attribute> theObject);
31 %template(geomDataAPI_Point) castTo<GeomDataAPI_Point>;
32 %template(geomDataAPI_Dir) castTo<GeomDataAPI_Dir>;
33 %template(geomDataAPI_Point2D) castTo<GeomDataAPI_Point2D>;