scriptup 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +11 -0
  3. data/README.md +5 -0
  4. data/ext/attribute_dictionaries.c +45 -0
  5. data/ext/attribute_dictionaries.h +3 -0
  6. data/ext/attribute_dictionary.c +156 -0
  7. data/ext/attribute_dictionary.h +3 -0
  8. data/ext/behavior.c +10 -0
  9. data/ext/behavior.h +3 -0
  10. data/ext/color.c +211 -0
  11. data/ext/color.h +3 -0
  12. data/ext/component_definition.c +188 -0
  13. data/ext/component_definition.h +3 -0
  14. data/ext/component_instance.c +10 -0
  15. data/ext/component_instance.h +3 -0
  16. data/ext/definition_list.c +145 -0
  17. data/ext/definition_list.h +3 -0
  18. data/ext/drawing_element.c +10 -0
  19. data/ext/drawing_element.h +3 -0
  20. data/ext/entities.c +11 -0
  21. data/ext/entities.h +3 -0
  22. data/ext/entity.c +253 -0
  23. data/ext/entity.h +3 -0
  24. data/ext/extconf.rb +38 -0
  25. data/ext/material.c +242 -0
  26. data/ext/material.h +3 -0
  27. data/ext/materials.c +80 -0
  28. data/ext/materials.h +3 -0
  29. data/ext/model.c +42 -0
  30. data/ext/model.h +3 -0
  31. data/ext/sketchup.c +89 -0
  32. data/ext/sketchup.h +4 -0
  33. data/ext/texture.c +9 -0
  34. data/ext/texture.h +3 -0
  35. data/ext/typed_value.c +84 -0
  36. data/ext/typed_value.h +5 -0
  37. data/ext/utils.h +80 -0
  38. data/lib/sketchup.rb +12 -0
  39. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +36 -0
  40. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +59 -0
  41. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +248 -0
  42. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +118 -0
  43. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +107 -0
  44. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +178 -0
  45. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +19 -0
  46. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +62 -0
  47. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +34 -0
  48. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +153 -0
  49. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +96 -0
  50. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +98 -0
  51. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +64 -0
  52. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +321 -0
  53. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +163 -0
  54. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +235 -0
  55. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +285 -0
  56. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +152 -0
  57. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +165 -0
  58. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +183 -0
  59. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +84 -0
  60. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +43 -0
  61. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +424 -0
  62. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +244 -0
  63. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +17 -0
  64. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +161 -0
  65. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +242 -0
  66. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +398 -0
  67. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +89 -0
  68. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +125 -0
  69. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +86 -0
  70. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +588 -0
  71. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +344 -0
  72. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +143 -0
  73. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +142 -0
  74. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +222 -0
  75. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +421 -0
  76. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +194 -0
  77. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +253 -0
  78. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +198 -0
  79. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +92 -0
  80. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +70 -0
  81. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +271 -0
  82. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +214 -0
  83. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +834 -0
  84. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +186 -0
  85. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +80 -0
  86. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +90 -0
  87. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +686 -0
  88. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +138 -0
  89. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +20 -0
  90. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +685 -0
  91. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +244 -0
  92. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +155 -0
  93. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +153 -0
  94. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +288 -0
  95. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +275 -0
  96. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +266 -0
  97. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +265 -0
  98. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +301 -0
  99. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +211 -0
  100. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +81 -0
  101. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +65 -0
  102. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +182 -0
  103. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +390 -0
  104. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +187 -0
  105. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +1663 -0
  106. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +49 -0
  107. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +72 -0
  108. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +79 -0
  109. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +166 -0
  110. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +140 -0
  111. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +179 -0
  112. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +836 -0
  113. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +56 -0
  114. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +26 -0
  115. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +212 -0
  116. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +156 -0
  117. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +147 -0
  118. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +45 -0
  119. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +303 -0
  120. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +190 -0
  121. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +384 -0
  122. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +358 -0
  123. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +280 -0
  124. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +390 -0
  125. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +79 -0
  126. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +154 -0
  127. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +122 -0
  128. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +65 -0
  129. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +16 -0
  130. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +16 -0
  131. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +239 -0
  132. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +124 -0
  133. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonGeometry.dylib +0 -0
  134. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonGeoutils.dylib +0 -0
  135. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonImage.dylib +0 -0
  136. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonPreferences.dylib +0 -0
  137. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonUnits.dylib +0 -0
  138. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonUtils.dylib +0 -0
  139. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonZip.dylib +0 -0
  140. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +50 -0
  141. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
  142. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +835 -0
  143. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
  144. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
  145. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
  146. data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
  147. data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +36 -0
  148. data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +59 -0
  149. data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +248 -0
  150. data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +118 -0
  151. data/sketchup-sdk-win/headers/SketchUpAPI/color.h +107 -0
  152. data/sketchup-sdk-win/headers/SketchUpAPI/common.h +178 -0
  153. data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +19 -0
  154. data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +62 -0
  155. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +34 -0
  156. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +153 -0
  157. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +96 -0
  158. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +98 -0
  159. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +64 -0
  160. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +321 -0
  161. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +163 -0
  162. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +235 -0
  163. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +285 -0
  164. data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +152 -0
  165. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +165 -0
  166. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +183 -0
  167. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +84 -0
  168. data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +43 -0
  169. data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +424 -0
  170. data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +244 -0
  171. data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +17 -0
  172. data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +161 -0
  173. data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +242 -0
  174. data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +398 -0
  175. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +89 -0
  176. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +125 -0
  177. data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +86 -0
  178. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +588 -0
  179. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +344 -0
  180. data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +143 -0
  181. data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +142 -0
  182. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +222 -0
  183. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +421 -0
  184. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +194 -0
  185. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +253 -0
  186. data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +198 -0
  187. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +92 -0
  188. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +70 -0
  189. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +271 -0
  190. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +214 -0
  191. data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +834 -0
  192. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +186 -0
  193. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +80 -0
  194. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +90 -0
  195. data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +686 -0
  196. data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +138 -0
  197. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +20 -0
  198. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +685 -0
  199. data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +244 -0
  200. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +155 -0
  201. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +153 -0
  202. data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +288 -0
  203. data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +275 -0
  204. data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +266 -0
  205. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +265 -0
  206. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +301 -0
  207. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +211 -0
  208. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +81 -0
  209. data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +65 -0
  210. data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +182 -0
  211. data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +390 -0
  212. data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +187 -0
  213. data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +1663 -0
  214. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +49 -0
  215. data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +72 -0
  216. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +79 -0
  217. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +166 -0
  218. data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +140 -0
  219. data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +179 -0
  220. data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +836 -0
  221. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +56 -0
  222. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +26 -0
  223. data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +212 -0
  224. data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +156 -0
  225. data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +147 -0
  226. data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +45 -0
  227. data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +303 -0
  228. data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +190 -0
  229. data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +384 -0
  230. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +358 -0
  231. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +280 -0
  232. data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +390 -0
  233. data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +79 -0
  234. data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +154 -0
  235. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +122 -0
  236. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +65 -0
  237. data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +16 -0
  238. data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +16 -0
  239. data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +239 -0
  240. data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +124 -0
  241. metadata +313 -0
@@ -0,0 +1,161 @@
1
+ // Copyright 2013-2020 Trimble Inc. All Rights Reserved
2
+
3
+ /**
4
+ * @file
5
+ * @brief Interfaces for SUAttributeDictionaryRef.
6
+ */
7
+ #ifndef SKETCHUP_MODEL_ATTRIBUTE_DICTIONARY_H_
8
+ #define SKETCHUP_MODEL_ATTRIBUTE_DICTIONARY_H_
9
+
10
+ #include <SketchUpAPI/common.h>
11
+ #include <SketchUpAPI/unicodestring.h>
12
+ #include <SketchUpAPI/model/defs.h>
13
+ #include <SketchUpAPI/model/typed_value.h>
14
+
15
+ #ifdef __cplusplus
16
+ extern "C" {
17
+ #endif
18
+
19
+ /**
20
+ @brief Creates an attributes dictionary object.
21
+ @since SketchUp 2018 M0, API 6.0
22
+ @param[out] dictionary The attributes dictionary object created.
23
+ @param[in] name The name of the attribute dictionary. Assumed to be UTF-8
24
+ encoded.
25
+ @related SUAttributeDictionaryRef
26
+ @return
27
+ - \ref SU_ERROR_NONE on success
28
+ - \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
29
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if dictionary is NULL
30
+ - \ref SU_ERROR_OVERWRITE_VALID if dictionary already references a valid object
31
+ */
32
+ SU_RESULT SUAttributeDictionaryCreate(SUAttributeDictionaryRef* dictionary, const char* name);
33
+
34
+ /**
35
+ @brief Releases an attributes dictionary object and its associated attributes.
36
+ If this dictionary has a parent, it will be removed from it.
37
+ @since SketchUp 2018 M0, API 6.0
38
+ @param[in,out] dictionary The attributes dictionary object.
39
+ @related SUAttributeDictionaryRef
40
+ @return
41
+ - \ref SU_ERROR_NONE on success
42
+ - \ref SU_ERROR_NULL_POINTER_INPUT if dictionary is NULL
43
+ - \ref SU_ERROR_INVALID_INPUT if dictionary does not reference a valid object
44
+ */
45
+ SU_RESULT SUAttributeDictionaryRelease(SUAttributeDictionaryRef* dictionary);
46
+
47
+ /**
48
+ @brief Converts from an \ref SUAttributeDictionaryRef to an \ref SUEntityRef.
49
+ This is essentially an upcast operation.
50
+ @since SketchUp 2014, API 2.0
51
+ @param[in] dictionary The attribute dictionary object.
52
+ @related SUAttributeDictionaryRef
53
+ @return
54
+ - The converted \ref SUEntityRef if dictionary is a valid object
55
+ - If not, the returned reference will be invalid
56
+ */
57
+ SU_EXPORT SUEntityRef SUAttributeDictionaryToEntity(SUAttributeDictionaryRef dictionary);
58
+
59
+ /**
60
+ @brief Converts from an \ref SUEntityRef to an \ref SUAttributeDictionaryRef.
61
+ This is essentially a downcast operation so the given \ref SUEntityRef
62
+ must be convertible to an \ref SUAttributeDictionaryRef.
63
+ @since SketchUp 2014, API 2.0
64
+ @param[in] entity The given entity reference.
65
+ @related SUAttributeDictionaryRef
66
+ @return
67
+ - The converted \ref SUAttributeDictionaryRef if the downcast operation succeeds
68
+ - If not, the returned reference will be invalid
69
+ */
70
+ SU_EXPORT SUAttributeDictionaryRef SUAttributeDictionaryFromEntity(SUEntityRef entity);
71
+
72
+ /**
73
+ @struct SUAttributeDictionaryRef
74
+ @extends SUEntityRef
75
+ @brief A dictionary type with SUStringRef objects as keys and SUTypedValueRef
76
+ objects as values.
77
+ */
78
+
79
+ /**
80
+ @brief Retrieves the name of an attribute dictionary object.
81
+ @param[in] dictionary The attribute dictionary object.
82
+ @param[out] name The name retrieved.
83
+ @related SUAttributeDictionaryRef
84
+ @return
85
+ - \ref SU_ERROR_NONE on success
86
+ - \ref SU_ERROR_INVALID_INPUT if dictionary is an invalid object
87
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
88
+ - \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
89
+ SUStringRef object
90
+ */
91
+ SU_RESULT SUAttributeDictionaryGetName(SUAttributeDictionaryRef dictionary, SUStringRef* name);
92
+
93
+ /**
94
+ @brief Inserts a key-value pair into an attribute dictionary object.
95
+ @param[in] dictionary The attribute dictionary object.
96
+ @param[in] key The key of the key-value pair. Assumed to be UTF-8
97
+ encoded.
98
+ @param[in] value_in The value of the key-value pair.
99
+ @related SUAttributeDictionaryRef
100
+ @return
101
+ - \ref SU_ERROR_NONE on success
102
+ - \ref SU_ERROR_INVALID_INPUT if dictionary or value_in is an invalid object.
103
+ - \ref SU_ERROR_NULL_POINTER_INPUT if key is NULL
104
+ - \ref SU_ERROR_INVALID_OPERATION if dictionary is read-only.
105
+ */
106
+ SU_RESULT SUAttributeDictionarySetValue(
107
+ SUAttributeDictionaryRef dictionary, const char* key, SUTypedValueRef value_in);
108
+
109
+ /**
110
+ @brief Retrieves the value associated with a given key from an attribute
111
+ dictionary.
112
+ @param[in] dictionary The attribute dictionary object.
113
+ @param[in] key The key of the key-value pair. Assumed to be UTF-8
114
+ encoded.
115
+ @param[out] value_out The value retrieved. Must be a valid object, i.e.
116
+ must have been allocated via SUTypedValueCreate().
117
+ @related SUAttributeDictionaryRef
118
+ @return
119
+ - \ref SU_ERROR_NONE on success
120
+ - \ref SU_ERROR_INVALID_INPUT if dictionary is an invalid object
121
+ - \ref SU_ERROR_NULL_POINTER_INPUT if key is NULL
122
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if value_out is NULL
123
+ - \ref SU_ERROR_INVALID_OUTPUT if value_out is an invalid object
124
+ - \ref SU_ERROR_NO_DATA if there is no value associated with the given key in
125
+ the dictionary
126
+ */
127
+ SU_RESULT SUAttributeDictionaryGetValue(
128
+ SUAttributeDictionaryRef dictionary, const char* key, SUTypedValueRef* value_out);
129
+
130
+ /**
131
+ @brief Retrieves the number of keys in an attribute dictionary object.
132
+ @param[in] dictionary The attribute dictionary object.
133
+ @param[out] count The number of keys.
134
+ @related SUAttributeDictionaryRef
135
+ @return
136
+ - \ref SU_ERROR_NONE on success
137
+ - \ref SU_ERROR_INVALID_INPUT if dictionary is an invalid object
138
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
139
+ */
140
+ SU_RESULT SUAttributeDictionaryGetNumKeys(SUAttributeDictionaryRef dictionary, size_t* count);
141
+
142
+ /**
143
+ @brief Retrieves the array of keys of an attribute dictionary object.
144
+ @param[in] dictionary The attribute dictionary object.
145
+ @param[in] len The number of keys to retrieve.
146
+ @param[out] keys The keys retrieved.
147
+ @param[out] count The number of keys retrieved.
148
+ @related SUAttributeDictionaryRef
149
+ @return
150
+ - \ref SU_ERROR_NONE on success
151
+ - \ref SU_ERROR_INVALID_INPUT if dictionary is an invalid object
152
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if keys or count is NULL
153
+ */
154
+ SU_RESULT SUAttributeDictionaryGetKeys(
155
+ SUAttributeDictionaryRef dictionary, size_t len, SUStringRef keys[], size_t* count);
156
+
157
+ #ifdef __cplusplus
158
+ } // extern "C" {
159
+ #endif
160
+
161
+ #endif // SKETCHUP_MODEL_ATTRIBUTE_DICTIONARY_H_
@@ -0,0 +1,242 @@
1
+ // Copyright 2015-2020 Trimble Inc. All Rights Reserved.
2
+
3
+ /**
4
+ * @file
5
+ * @brief Interfaces for SUAxesRef.
6
+ */
7
+ #ifndef SKETCHUP_MODEL_AXES_H_
8
+ #define SKETCHUP_MODEL_AXES_H_
9
+
10
+ #include <SketchUpAPI/common.h>
11
+ #include <SketchUpAPI/geometry.h>
12
+ #include <SketchUpAPI/transformation.h>
13
+ #include <SketchUpAPI/model/defs.h>
14
+
15
+ #ifdef __cplusplus
16
+ extern "C" {
17
+ #endif
18
+
19
+ /**
20
+ @struct SUAxesRef
21
+ @extends SUEntityRef
22
+ @brief An axes entity reference.
23
+ @since SketchUp 2016, API 4.0
24
+ */
25
+
26
+ /**
27
+ @brief Converts from an \ref SUAxesRef to an \ref SUEntityRef. This is
28
+ essentially an upcast operation.
29
+ @since SketchUp 2016, API 4.0
30
+ @param[in] axes The axes object.
31
+ @related SUAxesRef
32
+ @return
33
+ - The converted \ref SUEntityRef if axes is a valid object
34
+ - If not, the returned reference will be invalid
35
+ */
36
+ SU_EXPORT SUEntityRef SUAxesToEntity(SUAxesRef axes);
37
+
38
+ /**
39
+ @brief Converts from an \ref SUEntityRef to an \ref SUAxesRef.
40
+ This is essentially a downcast operation so the given \ref SUEntityRef
41
+ must be convertible to an \ref SUAxesRef.
42
+ @since SketchUp 2016, API 4.0
43
+ @param[in] entity The entity object.
44
+ @related SUAxesRef
45
+ @return
46
+ - The converted \ref SUAxesRef if the downcast operation succeeds
47
+ - If the downcast operation fails, the returned reference will be invalid
48
+ */
49
+ SU_EXPORT SUAxesRef SUAxesFromEntity(SUEntityRef entity);
50
+
51
+ /**
52
+ @brief Converts from an \ref SUAxesRef to an \ref SUDrawingElementRef.
53
+ This is essentially an upcast operation.
54
+ @since SketchUp 2016, API 4.0
55
+ @param[in] axes The given axes reference.
56
+ @related SUAxesRef
57
+ @return
58
+ - The converted \ref SUEntityRef if axes is a valid axes
59
+ - If not, the returned reference will be invalid
60
+ */
61
+ SU_EXPORT SUDrawingElementRef SUAxesToDrawingElement(SUAxesRef axes);
62
+
63
+ /**
64
+ @brief Converts from an \ref SUDrawingElementRef to an \ref SUAxesRef.
65
+ This is essentially a downcast operation so the given element must be
66
+ convertible to an \ref SUAxesRef.
67
+ @since SketchUp 2016, API 4.0
68
+ @param[in] drawing_elem The given element reference.
69
+ @related SUAxesRef
70
+ @return
71
+ - The converted \ref SUAxesRef if the downcast operation succeeds
72
+ - If not, the returned reference will be invalid.
73
+ */
74
+ SU_EXPORT SUAxesRef SUAxesFromDrawingElement(SUDrawingElementRef drawing_elem);
75
+
76
+ /**
77
+ @brief Creates a default constructed axes object. The axes object must be
78
+ subsequently deallocated with \ref SUAxesRelease() unless it is
79
+ associated with a parent object.
80
+ @since SketchUp 2016, API 4.0
81
+ @param[in] axes The axes object.
82
+ @related SUAxesRef
83
+ @return
84
+ - \ref SU_ERROR_NONE on success
85
+ - \ref SU_ERROR_NULL_POINTER_INPUT if axes is NULL
86
+ - \ref SU_ERROR_OVERWRITE_VALID if axes references a valid object
87
+ */
88
+ SU_RESULT SUAxesCreate(SUAxesRef* axes);
89
+
90
+ /**
91
+ @brief Creates an axes object. The axes object must be
92
+ subsequently deallocated with \ref SUAxesRelease() unless it is
93
+ associated with a parent object.
94
+ @since SketchUp 2016, API 4.0
95
+ @param[in] axes The axes object.
96
+ @param[in] origin The origin of the new axes.
97
+ @param[in] xaxis The 1st axis for the custom 3D axes.
98
+ @param[in] yaxis The 2nd axis for the custom 3D axes.
99
+ @param[in] zaxis The 3rd axis for the custom 3D axes.
100
+ @related SUAxesRef
101
+ @return
102
+ - \ref SU_ERROR_NONE on success
103
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if axes is NULL
104
+ - \ref SU_ERROR_OVERWRITE_VALID if axes references a valid object
105
+ - \ref SU_ERROR_NULL_POINTER_INPUT if any of the input pointers (origin, xaxis
106
+ yaxis, and zaxis) are NULL
107
+ - \ref SU_ERROR_GENERIC if the three vectors don't make an orthogonal axes
108
+ */
109
+ SU_RESULT SUAxesCreateCustom(
110
+ SUAxesRef* axes, const struct SUPoint3D* origin, const struct SUVector3D* xaxis,
111
+ const struct SUVector3D* yaxis, const struct SUVector3D* zaxis);
112
+
113
+ /**
114
+ @brief Releases aa axes object. The axes object must have been created with
115
+ \ref SUAxesCreate() and not subsequently associated with a parent object
116
+ (e.g. \ref SUEntitiesRef).
117
+ @since SketchUp 2016, API 4.0
118
+ @param[in] axes The axes object.
119
+ @related SUAxesRef
120
+ @return
121
+ - \ref SU_ERROR_NONE on success
122
+ - \ref SU_ERROR_NULL_POINTER_INPUT if axes is NULL
123
+ - \ref SU_ERROR_INVALID_INPUT if axes does not reference a valid object
124
+ */
125
+ SU_RESULT SUAxesRelease(SUAxesRef* axes);
126
+
127
+ /**
128
+ @brief Retrieves the origin point value, not a reference.
129
+ @since SketchUp 2016, API 4.0
130
+ @param[in] axes The axes object.
131
+ @param[out] origin Pointer to a \ref SUPoint3D struct for returning the origin.
132
+ @related SUAxesRef
133
+ @return
134
+ - \ref SU_ERROR_NONE on success
135
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
136
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if origin is NULL
137
+ */
138
+ SU_RESULT SUAxesGetOrigin(SUAxesRef axes, struct SUPoint3D* origin);
139
+
140
+ /**
141
+ @brief Sets the origin point value for the provided axes.
142
+ @since SketchUp 2016, API 4.0
143
+ @param[in] axes The axes object.
144
+ @param[in] origin Pointer to a \ref SUPoint3D struct for setting the origin.
145
+ @related SUAxesRef
146
+ @return
147
+ - \ref SU_ERROR_NONE on success
148
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
149
+ - \ref SU_ERROR_NULL_POINTER_INPUT if origin is NULL
150
+ */
151
+ SU_RESULT SUAxesSetOrigin(SUAxesRef axes, const struct SUPoint3D* origin);
152
+
153
+ /**
154
+ @brief Retrieves the 1st axis vector value, not a reference.
155
+ @since SketchUp 2016, API 4.0
156
+ @param[in] axes The axes object.
157
+ @param[out] axis Pointer to a \ref SUVector3D struct for getting the 1st axis.
158
+ @related SUAxesRef
159
+ @return
160
+ - \ref SU_ERROR_NONE on success
161
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
162
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if axis is NULL
163
+ */
164
+ SU_RESULT SUAxesGetXAxis(SUAxesRef axes, struct SUVector3D* axis);
165
+
166
+ /**
167
+ @brief Retrieves the 2nd axis vector value, not a reference.
168
+ @since SketchUp 2016, API 4.0
169
+ @param[in] axes The axes object.
170
+ @param[out] axis Pointer to a \ref SUVector3D struct for getting the 2nd axis.
171
+ @related SUAxesRef
172
+ @return
173
+ - \ref SU_ERROR_NONE on success
174
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
175
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if axis is NULL
176
+ */
177
+ SU_RESULT SUAxesGetYAxis(SUAxesRef axes, struct SUVector3D* axis);
178
+
179
+ /**
180
+ @brief Retrieves the 3rd axis vector value, not a reference.
181
+ @since SketchUp 2016, API 4.0
182
+ @param[in] axes The axes object.
183
+ @param[out] axis Pointer to a \ref SUVector3D struct for getting the 3rd axis.
184
+ @related SUAxesRef
185
+ @return
186
+ - \ref SU_ERROR_NONE on success
187
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
188
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if axis is NULL
189
+ */
190
+ SU_RESULT SUAxesGetZAxis(SUAxesRef axes, struct SUVector3D* axis);
191
+
192
+ /**
193
+ @brief Sets the axes' vectors. Fails if vectors don't make an orthogonal axes.
194
+ @since SketchUp 2016, API 4.0
195
+ @param[in] axes The axes object.
196
+ @param[in] xaxis Pointer to a \ref SUVector3D struct for setting the 1st axis.
197
+ @param[in] yaxis Pointer to a \ref SUVector3D struct for setting the 2nd axis.
198
+ @param[in] zaxis Pointer to a \ref SUVector3D struct for setting the 3rd axis.
199
+ @related SUAxesRef
200
+ @return
201
+ - \ref SU_ERROR_NONE on success
202
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
203
+ - \ref SU_ERROR_NULL_POINTER_INPUT if xaxis, yaxis, or zaxis is NULL
204
+ - \ref SU_ERROR_GENERIC if the three vectors don't make an orthogonal axes
205
+ */
206
+ SU_RESULT SUAxesSetAxesVecs(
207
+ SUAxesRef axes, const struct SUVector3D* xaxis, const struct SUVector3D* yaxis,
208
+ const struct SUVector3D* zaxis);
209
+
210
+ /**
211
+ @brief Retrieves a copy of the transformation.
212
+ @since SketchUp 2016, API 4.0
213
+ @param[in] axes The axes object.
214
+ @param[out] transform Pointer to a \ref SUTransformation struct for getting the
215
+ transformation data.
216
+ @related SUAxesRef
217
+ @return
218
+ - \ref SU_ERROR_NONE on success
219
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
220
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if transform is NULL
221
+ */
222
+ SU_RESULT SUAxesGetTransform(SUAxesRef axes, struct SUTransformation* transform);
223
+
224
+ /**
225
+ @brief Retrieves a copy of the plane.
226
+ @since SketchUp 2016, API 4.0
227
+ @param[in] axes The axes object.
228
+ @param[out] plane Pointer to a \ref SUPlane3D struct for getting the
229
+ plane data.
230
+ @related SUAxesRef
231
+ @return
232
+ - \ref SU_ERROR_NONE on success
233
+ - \ref SU_ERROR_INVALID_INPUT if axes is not a valid object
234
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if plane is NULL
235
+ */
236
+ SU_RESULT SUAxesGetPlane(SUAxesRef axes, struct SUPlane3D* plane);
237
+
238
+ #ifdef __cplusplus
239
+ } // extern "C"
240
+ #endif
241
+
242
+ #endif // SKETCHUP_MODEL_AXES_H_