4 #include "GeomDataAPI_swig.h"
7 // import other modules
11 // to avoid error on this
12 #define GEOMDATAAPI_EXPORT
13 #define MODELAPI_EXPORT
15 // standard definitions
17 %include "std_string.i"
19 %include "std_shared_ptr.i"
21 %shared_ptr(GeomDataAPI_Point)
22 %shared_ptr(GeomDataAPI_Dir)
23 %shared_ptr(GeomDataAPI_Point2D)
25 // all supported interfaces
26 %include "GeomDataAPI_Point.h"
27 %include "GeomDataAPI_Dir.h"
28 %include "GeomDataAPI_Point2D.h"
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>;