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,344 @@
1
+ // Copyright 2013-2020 Trimble Inc. All Rights Reserved.
2
+
3
+ /**
4
+ * @file
5
+ * @brief Interfaces for SUComponentInstanceRef.
6
+ */
7
+ #ifndef SKETCHUP_MODEL_COMPONENT_INSTANCE_H_
8
+ #define SKETCHUP_MODEL_COMPONENT_INSTANCE_H_
9
+
10
+ #include <SketchUpAPI/common.h>
11
+ #include <SketchUpAPI/unicodestring.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 SUComponentInstanceRef
21
+ @extends SUDrawingElementRef
22
+ @brief References a component instance, i.e. an instance of a component
23
+ definition.
24
+ */
25
+
26
+ /**
27
+ @brief Converts from an \ref SUComponentInstanceRef to an \ref SUEntityRef.
28
+ This is essentially an upcast operation.
29
+ @param[in] instance The given component instance reference.
30
+ @related SUComponentInstanceRef
31
+ @return
32
+ - The converted \ref SUEntityRef if instance is a valid component instance
33
+ - If not, the returned reference will be invalid
34
+ */
35
+ SU_EXPORT SUEntityRef SUComponentInstanceToEntity(SUComponentInstanceRef instance);
36
+
37
+ /**
38
+ @brief Converts from an \ref SUEntityRef to an \ref SUComponentInstanceRef.
39
+ This is essentially a downcast operation so the given entity must be
40
+ convertible to a component instance.
41
+ @param[in] entity The given entity reference.
42
+ @related SUComponentInstanceRef
43
+ @return
44
+ - The converted \ref SUComponentInstanceRef if the downcast operation succeeds
45
+ - If not, the returned reference will be invalid
46
+ */
47
+ SU_EXPORT SUComponentInstanceRef SUComponentInstanceFromEntity(SUEntityRef entity);
48
+
49
+ /**
50
+ @brief Converts from an \ref SUComponentInstanceRef to an \ref
51
+ SUDrawingElementRef. This is essentially an upcast operation.
52
+ @param[in] instance The given component instance reference.
53
+ @related SUComponentInstanceRef
54
+ @return
55
+ - The converted \ref SUEntityRef if instance is a valid component instance
56
+ - If not, the returned reference will be invalid
57
+ */
58
+ SU_EXPORT SUDrawingElementRef SUComponentInstanceToDrawingElement(SUComponentInstanceRef instance);
59
+
60
+ /**
61
+ @brief Converts from an \ref SUDrawingElementRef to an \ref
62
+ SUComponentInstanceRef. This is essentially a downcast operation so the
63
+ given element must be convertible to a component instance.
64
+ @param[in] drawing_elem The given drawing element reference.
65
+ @related SUComponentInstanceRef
66
+ @return
67
+ - The converted \ref SUComponentInstanceRef if the downcast operation succeeds
68
+ - If not, the returned reference will be invalid
69
+ */
70
+ SU_EXPORT SUComponentInstanceRef
71
+ SUComponentInstanceFromDrawingElement(SUDrawingElementRef drawing_elem);
72
+
73
+ /**
74
+ @brief Sets the name of a component instance object.
75
+ @param[in] instance The component instance object.
76
+ @param[in] name The name string to set the component instance object.
77
+ Assumed to be UTF-8 encoded.
78
+ @related SUComponentInstanceRef
79
+ @return
80
+ - \ref SU_ERROR_NONE on success
81
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
82
+ - \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
83
+ */
84
+ SU_RESULT SUComponentInstanceSetName(SUComponentInstanceRef instance, const char* name);
85
+
86
+ /**
87
+ @brief Deallocates a component instance object created with
88
+ SUComponentDefinitionCreateInstance().
89
+ @param[in] instance The component instance object.
90
+ @related SUComponentInstanceRef
91
+ @return
92
+ - \ref SU_ERROR_NONE on success
93
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if instance is NULL
94
+ */
95
+ SU_RESULT SUComponentInstanceRelease(SUComponentInstanceRef* instance);
96
+
97
+ /**
98
+ @brief Retrieves the name of a component instance object.
99
+ @param[in] instance The component instance object.
100
+ @param[out] name The name retrieved.
101
+ @related SUComponentInstanceRef
102
+ @return
103
+ - \ref SU_ERROR_NONE on success
104
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
105
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
106
+ - \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
107
+ SUStringRef object
108
+ */
109
+ SU_RESULT SUComponentInstanceGetName(SUComponentInstanceRef instance, SUStringRef* name);
110
+
111
+ /**
112
+ @brief Sets the globally unique identifier (guid) string of a instance object.
113
+ @since SketchUp 2015, API 3.0
114
+ @param[in] instance The component instance object.
115
+ @param[in] guid The utf-8 formatted guid string.
116
+ @related SUComponentInstanceRef
117
+ @return
118
+ - \ref SU_ERROR_NONE on success
119
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
120
+ - \ref SU_ERROR_INVALID_INPUT if guid is NULL or invalid
121
+ */
122
+ SU_RESULT SUComponentInstanceSetGuid(SUComponentInstanceRef instance, const char* guid);
123
+
124
+ /**
125
+ @brief Retrieves the globally unique identifier (guid) string of a instance object.
126
+ @param[in] instance The component instance object.
127
+ @param[out] guid The guid retrieved.
128
+ @related SUComponentInstanceRef
129
+ @return
130
+ - \ref SU_ERROR_NONE on success
131
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
132
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if guid is NULL
133
+ - \ref SU_ERROR_INVALID_OUTPUT if guid does not point to a valid \ref
134
+ SUStringRef object
135
+ */
136
+ SU_RESULT SUComponentInstanceGetGuid(SUComponentInstanceRef instance, SUStringRef* guid);
137
+
138
+ /**
139
+ @brief Sets the transform of a component instance object.
140
+
141
+ The transform is relative to the parent component. If the parent component is
142
+ the root component of a model, then the transform is relative to absolute
143
+ coordinates.
144
+ @param[in] instance The component instance object.
145
+ @param[in] transform The affine transform to set.
146
+ @related SUComponentInstanceRef
147
+ @return
148
+ - \ref SU_ERROR_NONE on success
149
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
150
+ - \ref SU_ERROR_NULL_POINTER_INPUT if transform is NULL
151
+ */
152
+ SU_RESULT SUComponentInstanceSetTransform(
153
+ SUComponentInstanceRef instance, const struct SUTransformation* transform);
154
+
155
+ /**
156
+ @brief Retrieves the transform of a component instance object.
157
+
158
+ See description of \ref SUComponentInstanceSetTransform() for a discussion of
159
+ component instance transforms.
160
+ @param[in] instance The component instance object.
161
+ @param[out] transform The transform retrieved.
162
+ @related SUComponentInstanceRef
163
+ @return
164
+ - \ref SU_ERROR_NONE on success
165
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
166
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if transform is NULL
167
+ */
168
+ SU_RESULT SUComponentInstanceGetTransform(
169
+ SUComponentInstanceRef instance, struct SUTransformation* transform);
170
+
171
+ /**
172
+ @brief Retrieves the component definition of a component instance object.
173
+ @param[in] instance The component instance object.
174
+ @param[out] component The component definition retrieved.
175
+ @related SUComponentInstanceRef
176
+ @return
177
+ - \ref SU_ERROR_NONE on success
178
+ - \ref SU_ERROR_INVALID_INPUT if \p instance is not a valid object
179
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p component is NULL
180
+ */
181
+ SU_RESULT SUComponentInstanceGetDefinition(
182
+ SUComponentInstanceRef instance, SUComponentDefinitionRef* component);
183
+
184
+ /**
185
+ @brief Locks the instance if is_locked is true, otherwise unlocks the instance.
186
+ @since SketchUp 2016, API 4.0
187
+ @param[in] instance The instance object.
188
+ @param[in] lock if true lock the instance, otherwise unlock it.
189
+ @related SUComponentInstanceRef
190
+ @return
191
+ - \ref SU_ERROR_NONE on success
192
+ - \ref SU_ERROR_INVALID_INPUT if instance is invalid
193
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_locked is NULL
194
+ */
195
+ SU_RESULT SUComponentInstanceSetLocked(SUComponentInstanceRef instance, bool lock);
196
+
197
+ /**
198
+ @brief Retrieves a boolean indicating whether tne instance is locked.
199
+ @since SketchUp 2016, API 4.0
200
+ @param[in] instance The instance object.
201
+ @param[out] is_locked returns true if the instance is locked
202
+ @related SUComponentInstanceRef
203
+ @return
204
+ - \ref SU_ERROR_NONE on success
205
+ - \ref SU_ERROR_INVALID_INPUT if instance is invalid
206
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_locked is NULL
207
+ */
208
+ SU_RESULT SUComponentInstanceIsLocked(SUComponentInstanceRef instance, bool* is_locked);
209
+
210
+ /**
211
+ @brief Saves the component instance data to a file.
212
+ @param[in] instance The component instance object.
213
+ @param[in] file_path The file path destination of the serialization operation.
214
+ Assumed to be UTF-8 encoded.
215
+ @related SUComponentInstanceRef
216
+ @return
217
+ - \ref SU_ERROR_NONE on success
218
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
219
+ - \ref SU_ERROR_NULL_POINTER_INPUT if file_path is NULL
220
+ - \ref SU_ERROR_SERIALIZATION if the serialization operation itself fails
221
+ @deprecated Superseded by SUComponentDefinitionSaveToFile(). This function had the side effects of
222
+ making the instance unique and changing its transformation. An SKP file also conceptually maps
223
+ better to a component definition than a component instance.
224
+ */
225
+ SU_DEPRECATED_FUNCTION("10.0")
226
+ SU_RESULT SUComponentInstanceSaveAs(SUComponentInstanceRef instance, const char* file_path);
227
+
228
+ /**
229
+ @brief Computes the volume of the component instance.
230
+ @since SketchUp 2016, API 4.0
231
+ @param[in] instance The component instance object.
232
+ @param[in] transform A transformation to be applied to the component instance.
233
+ If set to NULL, the volume will be computed based on the
234
+ instance's transformation. Note that in this case if the
235
+ instance is contained within another instance or group,
236
+ the parent transformation is not factored in.
237
+ @param[out] volume The volume of the component instance in cubic inches.
238
+ @related SUComponentInstanceRef
239
+ @return
240
+ - \ref SU_ERROR_NONE on success
241
+ - \ref SU_ERROR_INVALID_INPUT if component instance is not a valid object
242
+ - \ref SU_ERROR_NO_DATA if component instance is not manifold.
243
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if volume is NULL
244
+ */
245
+ SU_RESULT SUComponentInstanceComputeVolume(
246
+ SUComponentInstanceRef instance, const struct SUTransformation* transform, double* volume);
247
+
248
+ /**
249
+ @brief Creates a \ref SUDynamicComponentInfoRef object.
250
+ @since SketchUp 2016, API 4.0
251
+ @param[in] instance The component instance object.
252
+ @param[out] dc_info The dynamic component info object.
253
+ @related SUComponentInstanceRef
254
+ @return
255
+ - \ref SU_ERROR_NONE on success
256
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
257
+ - \ref SU_ERROR_NO_DATA if instance is not a dynamic component
258
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if dc_info is NULL
259
+ - \ref SU_ERROR_OVERWRITE_VALID if dc_info is a valid object
260
+ */
261
+ SU_RESULT SUComponentInstanceCreateDCInfo(
262
+ SUComponentInstanceRef instance, SUDynamicComponentInfoRef* dc_info);
263
+
264
+ /**
265
+ @brief Creates a \ref SUClassificationInfoRef object.
266
+ @since SketchUp 2017, API 5.0
267
+ @param[in] instance The component instance object.
268
+ @param[out] classification_info The classification info object.
269
+ @related SUComponentInstanceRef
270
+ @return
271
+ - \ref SU_ERROR_NONE on success
272
+ - \ref SU_ERROR_INVALID_INPUT if instance is not a valid object
273
+ - \ref SU_ERROR_NO_DATA if instance is not a classified object
274
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if classification_info is NULL
275
+ */
276
+ SU_RESULT SUComponentInstanceCreateClassificationInfo(
277
+ SUComponentInstanceRef instance, SUClassificationInfoRef* classification_info);
278
+
279
+ /**
280
+ @brief Retrieves the number of attached component instances.
281
+ @param[in] instance The component instance object.
282
+ @param[out] count The number of attached instances.
283
+ @related SUComponentInstanceRef
284
+ @return
285
+ - \ref SU_ERROR_NONE on success
286
+ - \ref SU_ERROR_INVALID_INPUT if instance is an invalid object
287
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
288
+ */
289
+ SU_RESULT SUComponentInstanceGetNumAttachedInstances(
290
+ SUComponentInstanceRef instance, size_t* count);
291
+
292
+ /**
293
+ @brief Retrieves the attached component instances.
294
+ @param[in] instance The component instance object.
295
+ @param[in] len The number of instances to retrieve.
296
+ @param[out] instances The attached instances retrieved. These may be instances
297
+ or groups.
298
+ @param[out] count The number of instances retrieved.
299
+ @related SUComponentInstanceRef
300
+ @return
301
+ - \ref SU_ERROR_NONE on success
302
+ - \ref SU_ERROR_INVALID_INPUT if instance is an invalid object
303
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if instances or count is NULL
304
+ */
305
+ SU_RESULT SUComponentInstanceGetAttachedInstances(
306
+ SUComponentInstanceRef instance, size_t len, SUComponentInstanceRef instances[], size_t* count);
307
+
308
+ /**
309
+ @brief Retrieves the number of drawing element this instance is attached to.
310
+ @since SketchUp 2018, API 6.0
311
+ @param[in] instance The component instance object.
312
+ @param[out] count The number of drawing elements this component instance is
313
+ attached to.
314
+ @related SUComponentInstanceRef
315
+ @return
316
+ - \ref SU_ERROR_NONE on success
317
+ - \ref SU_ERROR_INVALID_INPUT if instance is an invalid object
318
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
319
+ */
320
+ SU_RESULT SUComponentInstanceGetNumAttachedToDrawingElements(
321
+ SUComponentInstanceRef instance, size_t* count);
322
+
323
+ /**
324
+ @brief Retrieves the drawing elements this instance is attached to.
325
+ @since SketchUp 2018, API 6.0
326
+ @param[in] instance The component instance object.
327
+ @param[in] len The number of instances to retrieve.
328
+ @param[out] elements The drawing elements retrieved. These may be instances,
329
+ groups or faces.
330
+ @param[out] count The number of drawing elements retrieved.
331
+ @related SUComponentInstanceRef
332
+ @return
333
+ - \ref SU_ERROR_NONE on success
334
+ - \ref SU_ERROR_INVALID_INPUT if instance is an invalid object
335
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if instances or count is NULL
336
+ */
337
+ SU_RESULT SUComponentInstanceGetAttachedToDrawingElements(
338
+ SUComponentInstanceRef instance, size_t len, SUDrawingElementRef elements[], size_t* count);
339
+
340
+ #ifdef __cplusplus
341
+ } // extern "C"
342
+ #endif
343
+
344
+ #endif // SKETCHUP_MODEL_COMPONENT_INSTANCE_H_
@@ -0,0 +1,143 @@
1
+ // Copyright 2013 Trimble Inc. All Rights Reserved.
2
+
3
+ /**
4
+ * @file
5
+ * @brief Interfaces for SUCurveRef.
6
+ */
7
+ #ifndef SKETCHUP_MODEL_CURVE_H_
8
+ #define SKETCHUP_MODEL_CURVE_H_
9
+
10
+ #include <SketchUpAPI/common.h>
11
+ #include <SketchUpAPI/model/defs.h>
12
+
13
+ #ifdef __cplusplus
14
+ extern "C" {
15
+ #endif
16
+
17
+ /**
18
+ @struct SUCurveRef
19
+ @extends SUEntityRef
20
+ @brief References a curve.
21
+ */
22
+
23
+ /**
24
+ @enum SUCurveType
25
+ @brief Defines curve types that can be represented by \ref SUCurveRef.
26
+ */
27
+ enum SUCurveType { SUCurveType_Simple = 0, SUCurveType_Arc };
28
+
29
+ /**
30
+ @brief Converts from an \ref SUCurveRef to an \ref SUEntityRef.
31
+ This is essentially an upcast operation.
32
+ @param[in] curve The given curve reference.
33
+ @related SUCurveRef
34
+ @return
35
+ - The converted \ref SUEntityRef if curve is a valid object
36
+ - If not, the returned reference will be invalid
37
+ */
38
+ SU_EXPORT SUEntityRef SUCurveToEntity(SUCurveRef curve);
39
+
40
+ /**
41
+ @brief Converts from an \ref SUEntityRef to an \ref SUCurveRef.
42
+ This is essentially a downcast operation so the given \ref SUEntityRef
43
+ must be convertible to an \ref SUCurveRef.
44
+ @param[in] entity The given entity reference.
45
+ @related SUCurveRef
46
+ @return
47
+ - The converted \ref SUCurveRef if the downcast operation succeeds
48
+ - If not, the returned reference will be invalid
49
+ */
50
+ SU_EXPORT SUCurveRef SUCurveFromEntity(SUEntityRef entity);
51
+
52
+ /**
53
+ @brief Creates a curve object with the given array of edges that is not
54
+ connected to any face object. The array of N edges is sorted such that
55
+ for each edge in the range [0, N] the start position of each edge is the
56
+ same as the end position of the previous edge in the array. Each
57
+ element of the array of edges is subsequently associated with the
58
+ created curve object and must not be deallocated via SUEdgeRelease().
59
+ @param curve The curve object created.
60
+ @param edges The array of edge objects.
61
+ @param len The number of edge objects in the array.
62
+ @related SUCurveRef
63
+ @return
64
+ - \ref SU_ERROR_NONE on success
65
+ - \ref SU_ERROR_NULL_POINTER_INPUT if edges is NULL
66
+ - \ref SU_ERROR_OUT_OF_RANGE if len is 0
67
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if curve is NULL
68
+ - \ref SU_ERROR_OVERWRITE_VALID if curve already references a valid object
69
+ - \ref SU_ERROR_GENERIC if edge array contains an invalid edge, if the edges
70
+ in the array are not connected, if any of the edges are associated with a face
71
+ object, or the edges describe a loop
72
+ */
73
+ SU_RESULT SUCurveCreateWithEdges(SUCurveRef* curve, const SUEdgeRef edges[], size_t len);
74
+
75
+ /**
76
+ @brief Releases a curve object and its associated edge objects.
77
+ @param curve The curve object.
78
+ @related SUCurveRef
79
+ @return
80
+ - \ref SU_ERROR_NONE on success
81
+ - \ref SU_ERROR_NULL_POINTER_INPUT if curve is NULL
82
+ - \ref SU_ERROR_INVALID_INPUT if curve does not reference a valid object
83
+ */
84
+ SU_RESULT SUCurveRelease(SUCurveRef* curve);
85
+
86
+ /**
87
+ @brief Retrieves the curve type of a curve object.
88
+ @param[in] curve The curve object.
89
+ @param[out] type The curve type retrieved.
90
+ @related SUCurveRef
91
+ @return
92
+ - \ref SU_ERROR_NONE on success
93
+ - \ref SU_ERROR_INVALID_INPUT if curve is not a valid curve object
94
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
95
+ */
96
+ SU_RESULT SUCurveGetType(SUCurveRef curve, enum SUCurveType* type);
97
+
98
+ /**
99
+ @brief Retrieves the number of edges that belong to a curve object.
100
+ @param[in] curve The curve object.
101
+ @param[out] count The number of edges.
102
+ @related SUCurveRef
103
+ @return
104
+ - \ref SU_ERROR_NONE on success
105
+ - \ref SU_ERROR_INVALID_INPUT if curve is not a valid curve object
106
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
107
+ */
108
+ SU_RESULT SUCurveGetNumEdges(SUCurveRef curve, size_t* count);
109
+
110
+ /**
111
+ @brief Retrieves the edges of a curve object. Provides access to all edges in
112
+ the curve. The first edge is the first element of the edges array and
113
+ the last edge is the last element if all edges were retrieved.
114
+ @param[in] curve The curve object.
115
+ @param[in] len The number of edges to retrieve.
116
+ @param[out] edges The edges retrieved.
117
+ @param[out] count The number of edges retrieved.
118
+ @related SUCurveRef
119
+ @return
120
+ - \ref SU_ERROR_NONE on success
121
+ - \ref SU_ERROR_INVALID_INPUT if curve is not a valid curve object
122
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if edges or count is NULL
123
+ */
124
+ SU_RESULT SUCurveGetEdges(SUCurveRef curve, size_t len, SUEdgeRef edges[], size_t* count);
125
+
126
+ /**
127
+ @brief True if this edge was originally created by the polygon tool, otherwise false.
128
+ @since SketchUp 2021.1, API 9.1
129
+ @param[in] curve
130
+ @param[out] is_curve The edges retrieved.
131
+ @related SUCurveRef
132
+ @return
133
+ - \ref SU_ERROR_NONE on success
134
+ - \ref SU_ERROR_INVALID_INPUT if \p curve is not a valid curve object
135
+ - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p is_curve is NULL
136
+ */
137
+ SU_RESULT SUCurveIsPolygon(SUCurveRef curve, bool* is_curve);
138
+
139
+ #ifdef __cplusplus
140
+ } // extern "C"
141
+ #endif
142
+
143
+ #endif // SKETCHUP_MODEL_CURVE_H_
@@ -0,0 +1,142 @@
1
+ // Copyright 2013-2020 Trimble Inc. All Rights Reserved.
2
+
3
+ /**
4
+ * @file
5
+ * @brief Types related to the SketchUp model.
6
+ */
7
+ #ifndef SKETCHUP_MODEL_DEFS_H_
8
+ #define SKETCHUP_MODEL_DEFS_H_
9
+
10
+ #include <SketchUpAPI/defs.h>
11
+
12
+ #pragma pack(push, 8)
13
+
14
+ DEFINE_SU_TYPE(SUArcCurveRef)
15
+ DEFINE_SU_TYPE(SUAttributeDictionaryRef)
16
+ DEFINE_SU_TYPE(SUAxesRef)
17
+ DEFINE_SU_TYPE(SUCameraRef)
18
+ DEFINE_SU_TYPE(SUClassificationsRef)
19
+ DEFINE_SU_TYPE(SUClassificationAttributeRef)
20
+ DEFINE_SU_TYPE(SUClassificationInfoRef)
21
+ DEFINE_SU_TYPE(SUComponentDefinitionRef)
22
+ DEFINE_SU_TYPE(SUComponentInstanceRef)
23
+ DEFINE_SU_TYPE(SUCurveRef)
24
+ DEFINE_SU_TYPE(SUDimensionRef)
25
+ DEFINE_SU_TYPE(SUDimensionLinearRef)
26
+ DEFINE_SU_TYPE(SUDimensionRadialRef)
27
+ DEFINE_SU_TYPE(SUDimensionStyleRef)
28
+ DEFINE_SU_TYPE(SUDrawingElementRef)
29
+ DEFINE_SU_TYPE(SUDynamicComponentInfoRef)
30
+ DEFINE_SU_TYPE(SUDynamicComponentAttributeRef)
31
+ DEFINE_SU_TYPE(SUEdgeRef)
32
+ DEFINE_SU_TYPE(SUEdgeUseRef)
33
+ DEFINE_SU_TYPE(SUEntitiesRef)
34
+ DEFINE_SU_TYPE(SUEntityListRef)
35
+ DEFINE_SU_TYPE(SUEntityListIteratorRef)
36
+ DEFINE_SU_TYPE(SUEntityRef)
37
+ DEFINE_SU_TYPE(SUFaceRef)
38
+ DEFINE_SU_TYPE(SUFontRef)
39
+ DEFINE_SU_TYPE(SUGeometryInputRef)
40
+ DEFINE_SU_TYPE(SUGroupRef)
41
+ DEFINE_SU_TYPE(SUGuideLineRef)
42
+ DEFINE_SU_TYPE(SUGuidePointRef)
43
+ DEFINE_SU_TYPE(SUImageRef)
44
+ DEFINE_SU_TYPE(SUImageRepRef)
45
+ DEFINE_SU_TYPE(SUInstancePathRef)
46
+ DEFINE_SU_TYPE(SULayerRef)
47
+ DEFINE_SU_TYPE(SULayerFolderRef)
48
+ DEFINE_SU_TYPE(SULineStyleRef)
49
+ DEFINE_SU_TYPE(SULineStylesRef)
50
+ DEFINE_SU_TYPE(SULocationRef)
51
+ DEFINE_SU_TYPE(SULoopInputRef)
52
+ DEFINE_SU_TYPE(SULoopRef)
53
+ DEFINE_SU_TYPE(SUMaterialRef)
54
+ DEFINE_SU_TYPE(SUMeshHelperRef)
55
+ DEFINE_SU_TYPE(SUModelRef)
56
+ DEFINE_SU_TYPE(SUOpeningRef)
57
+ DEFINE_SU_TYPE(SUOptionsManagerRef)
58
+ DEFINE_SU_TYPE(SUOptionsProviderRef)
59
+ DEFINE_SU_TYPE(SUOverlayRef)
60
+ DEFINE_SU_TYPE(SUPolyline3dRef)
61
+ DEFINE_SU_TYPE(SURenderingOptionsRef)
62
+ DEFINE_SU_TYPE(SUSceneRef)
63
+ DEFINE_SU_TYPE(SUSchemaRef)
64
+ DEFINE_SU_TYPE(SUSchemaTypeRef)
65
+ DEFINE_SU_TYPE(SUSectionPlaneRef)
66
+ DEFINE_SU_TYPE(SUSelectionRef)
67
+ DEFINE_SU_TYPE(SUShadowInfoRef)
68
+ DEFINE_SU_TYPE(SUStyleRef)
69
+ DEFINE_SU_TYPE(SUStylesRef)
70
+ DEFINE_SU_TYPE(SUTextRef)
71
+ DEFINE_SU_TYPE(SUTextureRef)
72
+ DEFINE_SU_TYPE(SUTextureWriterRef)
73
+ DEFINE_SU_TYPE(SUTypedValueRef)
74
+ DEFINE_SU_TYPE(SUUVHelperRef)
75
+ DEFINE_SU_TYPE(SUVertexRef)
76
+
77
+ /**
78
+ @enum SURefType
79
+ @brief Types of concrete object references.
80
+ */
81
+ enum SURefType {
82
+ SURefType_Unknown = 0, ///< Unknown object type.
83
+ SURefType_AttributeDictionary, ///< SUAttributeDictionaryRef type
84
+ SURefType_Camera, ///< SUCameraRef type
85
+ SURefType_ComponentDefinition, ///< SUComponentDefinitionRef type
86
+ SURefType_ComponentInstance, ///< SUComponentInstanceRef type
87
+ SURefType_Curve, ///< SUCurveRef type
88
+ SURefType_Edge, ///< SUEdgeRef type
89
+ SURefType_EdgeUse, ///< SUEdgeUseRef type
90
+ SURefType_Entities, ///< SUEntitiesRef type
91
+ SURefType_Face, ///< SUFaceRef type
92
+ SURefType_Group, ///< SUGroupRef type
93
+ SURefType_Image, ///< SUImageRef type
94
+ SURefType_Layer, ///< SULayerRef type
95
+ SURefType_Location, ///< SULocationRef type
96
+ SURefType_Loop, ///< SULoopRef type
97
+ SURefType_MeshHelper, ///< SUMeshHelperRef type
98
+ SURefType_Material, ///< SUMaterialRef type
99
+ SURefType_Model, ///< SUModelRef type
100
+ SURefType_Polyline3D, ///< SUPolyline3DRef type
101
+ SURefType_Scene, ///< SUSceneRef type
102
+ SURefType_Texture, ///< SUTextureRef type
103
+ SURefType_TextureWriter, ///< SUTextureWriterRef type
104
+ SURefType_TypedValue, ///< SUTypedValueRef type
105
+ SURefType_UVHelper, ///< SUUVHelperRef type
106
+ SURefType_Vertex, ///< SUVertexRef type
107
+ SURefType_RenderingOptions, ///< SURenderingOptionsRef type
108
+ SURefType_GuidePoint, ///< SUGuidePointRef type
109
+ SURefType_GuideLine, ///< SUGuideLineRef type
110
+ SURefType_Schema, ///< SUSchemaRef type
111
+ SURefType_SchemaType, ///< SUSchemaTypeRef type
112
+ SURefType_ShadowInfo, ///< SUShadowInfoRef type
113
+ SURefType_Axes, ///< SUAxesRef type
114
+ SURefType_ArcCurve, ///< SUArcCurveRef type
115
+ SURefType_SectionPlane, ///< SUSectionPlaneRef type
116
+ SURefType_DynamicComponentInfo, ///< SUDynamicComponentInfoRef type
117
+ SURefType_DynamicComponentAttribute, ///< SUDynamicComponentAttributeRef type
118
+ SURefType_Style, ///< SUStyleRef type
119
+ SURefType_Styles, ///< SUStylesRef type
120
+ SURefType_ImageRep, ///< SUImageRepRef type
121
+ SURefType_InstancePath, ///< SUInstancePathRef type
122
+ SURefType_Font, ///< SUFontRef type
123
+ SURefType_Dimension, ///< SUDimensionRef type
124
+ SURefType_DimensionLinear, ///< SUDimensionLinearRef type
125
+ SURefType_DimensionRadial, ///< SUDimensionRadialRef type
126
+ SURefType_DimensionStyle, ///< SUDimensionStyleRef type
127
+ SURefType_Text, ///< SUTextRef type
128
+ SURefType_EntityList, ///< SUEntityListRef type
129
+ SURefType_EntityListIterator, ///< SUEntityListIteratorRef type
130
+ SURefType_DrawingElement, ///< SUDrawingElementRef type
131
+ SURefType_Entity, ///< SUEntityRef type
132
+ SURefType_LengthFormatter, ///< SULengthFormatterRef type
133
+ SURefType_LineStyle, ///< SULineStyleRef type
134
+ SURefType_LineStyleManager, ///< SULineStyleManagerRef type
135
+ SURefType_Selection, ///< SUSelectionRef type
136
+ SURefType_LayerFolder, ///< SULayerFolderRef type
137
+
138
+ };
139
+
140
+ #pragma pack(pop)
141
+
142
+ #endif // SKETCHUP_MODEL_DEFS_H_