typemap.xspt 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. %typemap{bool}{simple};
  2. %typemap{size_t}{simple};
  3. %typemap{coord_t}{simple};
  4. %typemap{coordf_t}{simple};
  5. %typemap{std::string};
  6. %typemap{t_config_option_key};
  7. %typemap{t_model_material_id};
  8. %typemap{std::vector<int>};
  9. %typemap{std::vector<size_t>};
  10. %typemap{std::vector<unsigned int>*};
  11. %typemap{std::vector<double>};
  12. %typemap{std::vector<double>*};
  13. %typemap{std::vector<unsigned int>};
  14. %typemap{std::vector<unsigned int>*};
  15. %typemap{std::vector<std::string>};
  16. %typemap{t_layer_height_ranges};
  17. %typemap{void*};
  18. %typemap{SV*};
  19. %typemap{AV*};
  20. %typemap{Point*};
  21. %typemap{Ref<Point>}{simple};
  22. %typemap{Clone<Point>}{simple};
  23. %typemap{Point3*};
  24. %typemap{Ref<Point3>}{simple};
  25. %typemap{Clone<Point3>}{simple};
  26. %typemap{Pointf*};
  27. %typemap{Ref<Pointf>}{simple};
  28. %typemap{Clone<Pointf>}{simple};
  29. %typemap{Pointf3*};
  30. %typemap{Ref<Pointf3>}{simple};
  31. %typemap{Clone<Pointf3>}{simple};
  32. %typemap{BoundingBox*};
  33. %typemap{Ref<BoundingBox>}{simple};
  34. %typemap{Clone<BoundingBox>}{simple};
  35. %typemap{BoundingBoxf*};
  36. %typemap{Ref<BoundingBoxf>}{simple};
  37. %typemap{Clone<BoundingBoxf>}{simple};
  38. %typemap{BoundingBoxf3*};
  39. %typemap{Ref<BoundingBoxf3>}{simple};
  40. %typemap{Clone<BoundingBoxf3>}{simple};
  41. %typemap{DynamicPrintConfig*};
  42. %typemap{Ref<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{Flow*};
  62. %typemap{Ref<Flow>}{simple};
  63. %typemap{Clone<Flow>}{simple};
  64. %typemap{Filler*};
  65. %typemap{Ref<Filler>}{simple};
  66. %typemap{Clone<Filler>}{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{ExtrusionPath*};
  83. %typemap{Ref<ExtrusionPath>}{simple};
  84. %typemap{Clone<ExtrusionPath>}{simple};
  85. %typemap{ExtrusionLoop*};
  86. %typemap{Ref<ExtrusionLoop>}{simple};
  87. %typemap{Clone<ExtrusionLoop>}{simple};
  88. %typemap{TriangleMesh*};
  89. %typemap{Ref<TriangleMesh>}{simple};
  90. %typemap{Clone<TriangleMesh>}{simple};
  91. %typemap{PolylineCollection*};
  92. %typemap{Ref<PolylineCollection>}{simple};
  93. %typemap{Clone<PolylineCollection>}{simple};
  94. %typemap{MotionPlanner*};
  95. %typemap{Ref<MotionPlanner>}{simple};
  96. %typemap{Clone<MotionPlanner>}{simple};
  97. %typemap{GCodeWriter*};
  98. %typemap{Ref<GCodeWriter>}{simple};
  99. %typemap{Clone<GCodeWriter>}{simple};
  100. %typemap{GCodeSender*};
  101. %typemap{Ref<GCodeSender>}{simple};
  102. %typemap{Clone<GCodeSender>}{simple};
  103. %typemap{BridgeDetector*};
  104. %typemap{Ref<BridgeDetector>}{simple};
  105. %typemap{Clone<BridgeDetector>}{simple};
  106. %typemap{SurfaceCollection*};
  107. %typemap{Ref<SurfaceCollection>}{simple};
  108. %typemap{Clone<SurfaceCollection>}{simple};
  109. %typemap{PerimeterGenerator*};
  110. %typemap{Ref<PerimeterGenerator>}{simple};
  111. %typemap{Clone<PerimeterGenerator>}{simple};
  112. %typemap{Surface*};
  113. %typemap{Ref<Surface>}{simple};
  114. %typemap{Clone<Surface>}{simple};
  115. %typemap{PrintState*};
  116. %typemap{Ref<PrintState>}{simple};
  117. %typemap{PrintRegion*};
  118. %typemap{Ref<PrintRegion>}{simple};
  119. %typemap{PrintObject*};
  120. %typemap{Ref<PrintObject>}{simple};
  121. %typemap{Print*};
  122. %typemap{Ref<Print>}{simple};
  123. %typemap{Clone<Print>}{simple};
  124. %typemap{LayerRegion*};
  125. %typemap{Ref<LayerRegion>}{simple};
  126. %typemap{Layer*};
  127. %typemap{Ref<Layer>}{simple};
  128. %typemap{SlicingAdaptive*};
  129. %typemap{Ref<SlicingAdaptive>}{simple};
  130. %typemap{Clone<SlicingAdaptive>}{simple};
  131. %typemap{LayerHeightSpline*};
  132. %typemap{Ref<LayerHeightSpline>}{simple};
  133. %typemap{Clone<LayerHeightSpline>}{simple};
  134. %typemap{SupportLayer*};
  135. %typemap{Ref<SupportLayer>}{simple};
  136. %typemap{PlaceholderParser*};
  137. %typemap{Ref<PlaceholderParser>}{simple};
  138. %typemap{Clone<PlaceholderParser>}{simple};
  139. %typemap{AvoidCrossingPerimeters*};
  140. %typemap{Ref<AvoidCrossingPerimeters>}{simple};
  141. %typemap{Clone<AvoidCrossingPerimeters>}{simple};
  142. %typemap{Wipe*};
  143. %typemap{Ref<Wipe>}{simple};
  144. %typemap{Clone<Wipe>}{simple};
  145. %typemap{OozePrevention*};
  146. %typemap{Ref<OozePrevention>}{simple};
  147. %typemap{Clone<OozePrevention>}{simple};
  148. %typemap{CoolingBuffer*};
  149. %typemap{Ref<CoolingBuffer>}{simple};
  150. %typemap{Clone<CoolingBuffer>}{simple};
  151. %typemap{GCode*};
  152. %typemap{Ref<GCode>}{simple};
  153. %typemap{Clone<GCode>}{simple};
  154. %typemap{Points};
  155. %typemap{Pointfs};
  156. %typemap{Lines};
  157. %typemap{Polygons};
  158. %typemap{Polylines};
  159. %typemap{ExPolygons};
  160. %typemap{ExtrusionPaths};
  161. %typemap{Surfaces};
  162. %typemap{Polygons*};
  163. %typemap{TriangleMesh*};
  164. %typemap{TriangleMeshPtrs};
  165. %typemap{Extruder*};
  166. %typemap{Ref<Extruder>}{simple};
  167. %typemap{Clone<Extruder>}{simple};
  168. %typemap{Model*};
  169. %typemap{Ref<Model>}{simple};
  170. %typemap{Clone<Model>}{simple};
  171. %typemap{ModelMaterial*};
  172. %typemap{Ref<ModelMaterial>}{simple};
  173. %typemap{Clone<ModelMaterial>}{simple};
  174. %typemap{ModelObject*};
  175. %typemap{Ref<ModelObject>}{simple};
  176. %typemap{Clone<ModelObject>}{simple};
  177. %typemap{ModelObjectPtrs*};
  178. %typemap{Ref<ModelObjectPtrs>}{simple};
  179. %typemap{Clone<ModelObjectPtrs>}{simple};
  180. %typemap{ModelVolume*};
  181. %typemap{Ref<ModelVolume>}{simple};
  182. %typemap{Clone<ModelVolume>}{simple};
  183. %typemap{ModelVolumePtrs*};
  184. %typemap{Ref<ModelVolumePtrs>}{simple};
  185. %typemap{Clone<ModelVolumePtrs>}{simple};
  186. %typemap{ModelInstance*};
  187. %typemap{Ref<ModelInstance>}{simple};
  188. %typemap{Clone<ModelInstance>}{simple};
  189. %typemap{ModelInstancePtrs*};
  190. %typemap{Ref<ModelInstancePtrs>}{simple};
  191. %typemap{Clone<ModelInstancePtrs>}{simple};
  192. %typemap{GLVertexArray*};
  193. %typemap{SLAPrint*};
  194. %typemap{Ref<SLAPrint>}{simple};
  195. %typemap{Clone<SLAPrint>}{simple};
  196. %typemap{PrintRegionPtrs*};
  197. %typemap{PrintObjectPtrs*};
  198. %typemap{LayerPtrs*};
  199. %typemap{SupportLayerPtrs*};
  200. %typemap{ClipperLib::JoinType}{simple};
  201. %typemap{ClipperLib::PolyFillType}{simple};
  202. %typemap{Axis}{parsed}{
  203. %cpp_type{Axis};
  204. %precall_code{%
  205. $CVar = (Axis)SvUV($PerlVar);
  206. %};
  207. };
  208. %typemap{SurfaceType}{parsed}{
  209. %cpp_type{SurfaceType};
  210. %precall_code{%
  211. $CVar = (SurfaceType)SvUV($PerlVar);
  212. %};
  213. };
  214. %typemap{ExtrusionLoopRole}{parsed}{
  215. %cpp_type{ExtrusionLoopRole};
  216. %precall_code{%
  217. $CVar = (ExtrusionLoopRole)SvUV($PerlVar);
  218. %};
  219. };
  220. %typemap{ExtrusionRole}{parsed}{
  221. %cpp_type{ExtrusionRole};
  222. %precall_code{%
  223. $CVar = (ExtrusionRole)SvUV($PerlVar);
  224. %};
  225. };
  226. %typemap{FlowRole}{parsed}{
  227. %cpp_type{FlowRole};
  228. %precall_code{%
  229. $CVar = (FlowRole)SvUV($PerlVar);
  230. %};
  231. };
  232. %typemap{PrintStep}{parsed}{
  233. %cpp_type{PrintStep};
  234. %precall_code{%
  235. $CVar = (PrintStep)SvUV($PerlVar);
  236. %};
  237. };
  238. %typemap{PrintObjectStep}{parsed}{
  239. %cpp_type{PrintObjectStep};
  240. %precall_code{%
  241. $CVar = (PrintObjectStep)SvUV($PerlVar);
  242. %};
  243. };