]> SALOME platform Git repositories - modules/shaper.git/blob - src/GeomDataAPI/GeomDataAPI.i
Salome HOME
Issue #1315 Middle point constraint problem
[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 "ModelAPI.i"
9
10 // to avoid error on this
11 #define GEOMDATAAPI_EXPORT
12 #define MODELAPI_EXPORT
13
14 // standard definitions
15 %include "typemaps.i"
16 %include "std_string.i"
17 %include "std_list.i"
18 %include "std_shared_ptr.i"
19
20 %shared_ptr(GeomDataAPI_Point)
21 %shared_ptr(GeomDataAPI_Dir)
22 %shared_ptr(GeomDataAPI_Point2D)
23
24 // all supported interfaces
25 %include "GeomDataAPI_Point.h"
26 %include "GeomDataAPI_Dir.h"
27 %include "GeomDataAPI_Point2D.h"
28
29 template<class T> std::shared_ptr<T> castTo(std::shared_ptr<ModelAPI_Attribute> theObject);
30 %template(geomDataAPI_Point) castTo<GeomDataAPI_Point>;
31 %template(geomDataAPI_Dir) castTo<GeomDataAPI_Dir>;
32 %template(geomDataAPI_Point2D) castTo<GeomDataAPI_Point2D>;