typemap.xspt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. %typemap{bool}{simple};
  2. %typemap{size_t}{simple};
  3. %typemap{coordf_t}{simple};
  4. %typemap{std::string};
  5. %typemap{t_config_option_key};
  6. %typemap{t_model_material_id};
  7. %typemap{std::vector<int>};
  8. %typemap{std::vector<size_t>};
  9. %typemap{std::vector<unsigned int>*};
  10. %typemap{std::vector<double>};
  11. %typemap{std::vector<double>*};
  12. %typemap{std::vector<unsigned int>};
  13. %typemap{std::vector<unsigned int>*};
  14. %typemap{std::vector<std::string>};
  15. %typemap{t_layer_height_ranges};
  16. %typemap{void*};
  17. %typemap{SV*};
  18. %typemap{AV*};
  19. %typemap{Point*};
  20. %typemap{Ref<Point>}{simple};
  21. %typemap{Clone<Point>}{simple};
  22. %typemap{Point3*};
  23. %typemap{Ref<Point3>}{simple};
  24. %typemap{Clone<Point3>}{simple};
  25. %typemap{Vec2d*};
  26. %typemap{Ref<Vec2d>}{simple};
  27. %typemap{Clone<Vec2d>}{simple};
  28. %typemap{Vec3d*};
  29. %typemap{Ref<Vec3d>}{simple};
  30. %typemap{Clone<Vec3d>}{simple};
  31. %typemap{BoundingBox*};
  32. %typemap{Ref<BoundingBox>}{simple};
  33. %typemap{Clone<BoundingBox>}{simple};
  34. %typemap{BoundingBoxf*};
  35. %typemap{Ref<BoundingBoxf>}{simple};
  36. %typemap{Clone<BoundingBoxf>}{simple};
  37. %typemap{BoundingBoxf3*};
  38. %typemap{Ref<BoundingBoxf3>}{simple};
  39. %typemap{Clone<BoundingBoxf3>}{simple};
  40. %typemap{DynamicPrintConfig*};
  41. %typemap{Ref<DynamicPrintConfig>}{simple};
  42. %typemap{Clone<DynamicPrintConfig>}{simple};
  43. %typemap{StaticPrintConfig*};
  44. %typemap{Ref<StaticPrintConfig>}{simple};
  45. %typemap{PrintObjectConfig*};
  46. %typemap{Ref<PrintObjectConfig>}{simple};
  47. %typemap{PrintRegionConfig*};
  48. %typemap{Ref<PrintRegionConfig>}{simple};
  49. %typemap{GCodeConfig*};
  50. %typemap{Ref<GCodeConfig>}{simple};
  51. %typemap{PrintConfig*};
  52. %typemap{Ref<PrintConfig>}{simple};
  53. %typemap{FullPrintConfig*};
  54. %typemap{Ref<FullPrintConfig>}{simple};
  55. %typemap{ExPolygon*};
  56. %typemap{Ref<ExPolygon>}{simple};
  57. %typemap{Clone<ExPolygon>}{simple};
  58. %typemap{ExPolygonCollection*};
  59. %typemap{Ref<ExPolygonCollection>}{simple};
  60. %typemap{Clone<ExPolygonCollection>}{simple};
  61. %typemap{Filler*};
  62. %typemap{Ref<Filler>}{simple};
  63. %typemap{Clone<Filler>}{simple};
  64. %typemap{Flow*};
  65. %typemap{Ref<Flow>}{simple};
  66. %typemap{Clone<Flow>}{simple};
  67. %typemap{Line*};
  68. %typemap{Ref<Line>}{simple};
  69. %typemap{Clone<Line>}{simple};
  70. %typemap{Linef3*};
  71. %typemap{Ref<Linef3>}{simple};
  72. %typemap{Clone<Linef3>}{simple};
  73. %typemap{Polyline*};
  74. %typemap{Ref<Polyline>}{simple};
  75. %typemap{Clone<Polyline>}{simple};
  76. %typemap{Polygon*};
  77. %typemap{Ref<Polygon>}{simple};
  78. %typemap{Clone<Polygon>}{simple};
  79. %typemap{ExtrusionEntityCollection*};
  80. %typemap{Ref<ExtrusionEntityCollection>}{simple};
  81. %typemap{Clone<ExtrusionEntityCollection>}{simple};
  82. %typemap{ExtrusionMultiPath*};
  83. %typemap{Ref<ExtrusionMultiPath>}{simple};
  84. %typemap{Clone<ExtrusionMultiPath>}{simple};
  85. %typemap{ExtrusionPath*};
  86. %typemap{Ref<ExtrusionPath>}{simple};
  87. %typemap{Clone<ExtrusionPath>}{simple};
  88. %typemap{ExtrusionLoop*};
  89. %typemap{Ref<ExtrusionLoop>}{simple};
  90. %typemap{Clone<ExtrusionLoop>}{simple};
  91. %typemap{ExtrusionSimulator*};
  92. %typemap{Ref<ExtrusionSimulator>}{simple};
  93. %typemap{Clone<ExtrusionSimulator>}{simple};
  94. %typemap{TriangleMesh*};
  95. %typemap{Ref<TriangleMesh>}{simple};
  96. %typemap{Clone<TriangleMesh>}{simple};
  97. %typemap{PolylineCollection*};
  98. %typemap{Ref<PolylineCollection>}{simple};
  99. %typemap{Clone<PolylineCollection>}{simple};
  100. %typemap{BridgeDetector*};
  101. %typemap{Ref<BridgeDetector>}{simple};
  102. %typemap{Clone<BridgeDetector>}{simple};
  103. %typemap{SurfaceCollection*};
  104. %typemap{Ref<SurfaceCollection>}{simple};
  105. %typemap{Clone<SurfaceCollection>}{simple};
  106. %typemap{PerimeterGenerator*};
  107. %typemap{Ref<PerimeterGenerator>}{simple};
  108. %typemap{Clone<PerimeterGenerator>}{simple};
  109. %typemap{Surface*};
  110. %typemap{Ref<Surface>}{simple};
  111. %typemap{Clone<Surface>}{simple};
  112. %typemap{PrintState*};
  113. %typemap{Ref<PrintState>}{simple};
  114. %typemap{PrintRegion*};
  115. %typemap{Ref<PrintRegion>}{simple};
  116. %typemap{PrintObject*};
  117. %typemap{Ref<PrintObject>}{simple};
  118. %typemap{Print*};
  119. %typemap{Ref<Print>}{simple};
  120. %typemap{Clone<Print>}{simple};
  121. %typemap{LayerRegion*};
  122. %typemap{Ref<LayerRegion>}{simple};
  123. %typemap{Layer*};
  124. %typemap{Ref<Layer>}{simple};
  125. %typemap{SupportLayer*};
  126. %typemap{Ref<SupportLayer>}{simple};
  127. %typemap{PrintObjectSupportMaterial*};
  128. %typemap{Ref<PrintObjectSupportMaterial>}{simple};
  129. %typemap{Clone<PrintObjectSupportMaterial>}{simple};
  130. %typemap{PlaceholderParser*};
  131. %typemap{Ref<PlaceholderParser>}{simple};
  132. %typemap{Clone<PlaceholderParser>}{simple};
  133. %typemap{CoolingBuffer*};
  134. %typemap{Ref<CoolingBuffer>}{simple};
  135. %typemap{Clone<CoolingBuffer>}{simple};
  136. %typemap{GCode*};
  137. %typemap{Ref<GCode>}{simple};
  138. %typemap{Clone<GCode>}{simple};
  139. //%typemap{GCodePreviewData*};
  140. //%typemap{Ref<GCodePreviewData>}{simple};
  141. //%typemap{Clone<GCodePreviewData>}{simple};
  142. %typemap{Points};
  143. %typemap{Pointfs};
  144. %typemap{Lines};
  145. %typemap{Polygons};
  146. %typemap{Polylines};
  147. %typemap{ExPolygons};
  148. %typemap{ExtrusionPaths};
  149. %typemap{Surfaces};
  150. %typemap{Polygons*};
  151. %typemap{TriangleMesh*};
  152. %typemap{Model*};
  153. %typemap{Ref<Model>}{simple};
  154. %typemap{Clone<Model>}{simple};
  155. %typemap{ModelMaterial*};
  156. %typemap{Ref<ModelMaterial>}{simple};
  157. %typemap{Clone<ModelMaterial>}{simple};
  158. %typemap{ModelObject*};
  159. %typemap{Ref<ModelObject>}{simple};
  160. %typemap{Clone<ModelObject>}{simple};
  161. %typemap{ModelObjectPtrs*};
  162. %typemap{Ref<ModelObjectPtrs>}{simple};
  163. %typemap{Clone<ModelObjectPtrs>}{simple};
  164. %typemap{ModelVolume*};
  165. %typemap{Ref<ModelVolume>}{simple};
  166. %typemap{Clone<ModelVolume>}{simple};
  167. %typemap{ModelVolumePtrs*};
  168. %typemap{Ref<ModelVolumePtrs>}{simple};
  169. %typemap{Clone<ModelVolumePtrs>}{simple};
  170. %typemap{ModelInstance*};
  171. %typemap{Ref<ModelInstance>}{simple};
  172. %typemap{Clone<ModelInstance>}{simple};
  173. %typemap{ModelInstancePtrs*};
  174. %typemap{Ref<ModelInstancePtrs>}{simple};
  175. %typemap{Clone<ModelInstancePtrs>}{simple};
  176. %typemap{PresetHints*};
  177. %typemap{Ref<PresetHints>}{simple};
  178. %typemap{PrintRegionPtrs*};
  179. %typemap{PrintObjectPtrs*};
  180. %typemap{LayerPtrs*};
  181. %typemap{SupportLayerPtrs*};
  182. %typemap{Axis}{parsed}{
  183. %cpp_type{Axis};
  184. %precall_code{%
  185. $CVar = (Axis)SvUV($PerlVar);
  186. %};
  187. };
  188. %typemap{SurfaceType}{parsed}{
  189. %cpp_type{SurfaceType};
  190. %precall_code{%
  191. $CVar = (SurfaceType)SvUV($PerlVar);
  192. %};
  193. };
  194. %typemap{ExtrusionLoopRole}{parsed}{
  195. %cpp_type{ExtrusionLoopRole};
  196. %precall_code{%
  197. $CVar = (ExtrusionLoopRole)SvUV($PerlVar);
  198. %};
  199. };
  200. %typemap{ExtrusionRole}{parsed}{
  201. %cpp_type{ExtrusionRole};
  202. %precall_code{%
  203. $CVar = (ExtrusionRole)SvUV($PerlVar);
  204. %};
  205. };
  206. %typemap{ExtrusionSimulationType}{parsed}{
  207. %cpp_type{ExtrusionSimulationType};
  208. %precall_code{%
  209. $CVar = (ExtrusionSimulationType)SvUV($PerlVar);
  210. %};
  211. };
  212. %typemap{FlowRole}{parsed}{
  213. %cpp_type{FlowRole};
  214. %precall_code{%
  215. $CVar = (FlowRole)SvUV($PerlVar);
  216. %};
  217. };
  218. %typemap{PrintStep}{parsed}{
  219. %cpp_type{PrintStep};
  220. %precall_code{%
  221. $CVar = (PrintStep)SvUV($PerlVar);
  222. %};
  223. };
  224. %typemap{PrintObjectStep}{parsed}{
  225. %cpp_type{PrintObjectStep};
  226. %precall_code{%
  227. $CVar = (PrintObjectStep)SvUV($PerlVar);
  228. %};
  229. };