scriptup 2026.0.1 → 2026.0.2

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 (501) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -24
  3. data/ext/arc_curve.c +50 -0
  4. data/ext/attribute_dictionaries.c +49 -32
  5. data/ext/attribute_dictionary.c +54 -127
  6. data/ext/axes.c +79 -0
  7. data/ext/behavior.c +100 -9
  8. data/ext/bounding_box.c +195 -0
  9. data/ext/camera.c +178 -0
  10. data/ext/classifications.c +85 -0
  11. data/ext/color.c +91 -163
  12. data/ext/component_definition.c +78 -162
  13. data/ext/component_instance.c +88 -9
  14. data/ext/construction.c +59 -0
  15. data/ext/curve.c +87 -0
  16. data/ext/definition_list.c +89 -109
  17. data/ext/depend +1 -0
  18. data/ext/drawing_element.c +96 -117
  19. data/ext/edge.c +147 -0
  20. data/ext/edge_use.c +37 -0
  21. data/ext/entities.c +573 -16
  22. data/ext/entities_builder.c +145 -0
  23. data/ext/entity.c +175 -215
  24. data/ext/environments.c +149 -0
  25. data/ext/extconf.rb +54 -10
  26. data/ext/face.c +331 -0
  27. data/ext/geom.c +172 -0
  28. data/ext/group.c +86 -0
  29. data/ext/helpers.c +244 -0
  30. data/ext/image.c +182 -0
  31. data/ext/image_rep.c +158 -0
  32. data/ext/instance_path.c +185 -0
  33. data/ext/lat_long.c +88 -0
  34. data/ext/layer.c +98 -0
  35. data/ext/layer_folder.c +99 -0
  36. data/ext/layers.c +122 -0
  37. data/ext/length.c +253 -0
  38. data/ext/line_styles.c +60 -0
  39. data/ext/loop.c +24 -0
  40. data/ext/material.c +144 -197
  41. data/ext/materials.c +49 -60
  42. data/ext/model.c +232 -26
  43. data/ext/options_store.c +188 -0
  44. data/ext/page.c +168 -0
  45. data/ext/pages.c +135 -0
  46. data/ext/point2d.c +195 -0
  47. data/ext/point3d.c +340 -0
  48. data/ext/polygon_mesh.c +253 -0
  49. data/ext/scriptup.h +279 -0
  50. data/ext/section_plane.c +44 -0
  51. data/ext/sketchup.c +102 -76
  52. data/ext/styles.c +91 -0
  53. data/ext/text.c +135 -0
  54. data/ext/texture.c +74 -83
  55. data/ext/texture_writer.c +104 -0
  56. data/ext/transformation.c +309 -0
  57. data/ext/transformation2d.c +190 -0
  58. data/ext/uv_helper.c +41 -0
  59. data/ext/vector2d.c +238 -0
  60. data/ext/vector3d.c +294 -0
  61. data/ext/vertex.c +67 -0
  62. data/lib/sketchup.rb +2 -2
  63. data/sig/_top_level.rbs +188 -0
  64. data/sig/array.rbs +52 -0
  65. data/sig/geom/bounding_box.rbs +28 -0
  66. data/sig/geom/bounds2d.rbs +20 -0
  67. data/sig/geom/lat_long.rbs +13 -0
  68. data/sig/geom/oriented_bounds2d.rbs +10 -0
  69. data/sig/geom/point2d.rbs +32 -0
  70. data/sig/geom/point3d.rbs +46 -0
  71. data/sig/geom/polygon_mesh.rbs +35 -0
  72. data/sig/geom/transformation.rbs +44 -0
  73. data/sig/geom/transformation2d.rbs +26 -0
  74. data/sig/geom/utm.rbs +14 -0
  75. data/sig/geom/vector2d.rbs +40 -0
  76. data/sig/geom/vector3d.rbs +49 -0
  77. data/sig/geom.rbs +25 -0
  78. data/sig/language_handler.rbs +8 -0
  79. data/sig/layout/angular_dimension.rbs +32 -0
  80. data/sig/layout/auto_text_definition.rbs +73 -0
  81. data/sig/layout/auto_text_definitions.rbs +15 -0
  82. data/sig/layout/connection_point.rbs +6 -0
  83. data/sig/layout/dictionary.rbs +18 -0
  84. data/sig/layout/document.rbs +61 -0
  85. data/sig/layout/ellipse.rbs +5 -0
  86. data/sig/layout/entities.rbs +10 -0
  87. data/sig/layout/entity.rbs +28 -0
  88. data/sig/layout/formatted_text.rbs +30 -0
  89. data/sig/layout/grid.rbs +24 -0
  90. data/sig/layout/group.rbs +17 -0
  91. data/sig/layout/image.rbs +7 -0
  92. data/sig/layout/label.rbs +31 -0
  93. data/sig/layout/layer.rbs +21 -0
  94. data/sig/layout/layer_instance.rbs +9 -0
  95. data/sig/layout/layers.rbs +18 -0
  96. data/sig/layout/linear_dimension.rbs +39 -0
  97. data/sig/layout/locked_entity_error.rbs +4 -0
  98. data/sig/layout/locked_layer_error.rbs +4 -0
  99. data/sig/layout/page.rbs +20 -0
  100. data/sig/layout/page_info.rbs +37 -0
  101. data/sig/layout/pages.rbs +17 -0
  102. data/sig/layout/path.rbs +34 -0
  103. data/sig/layout/rectangle.rbs +15 -0
  104. data/sig/layout/reference_entity.rbs +7 -0
  105. data/sig/layout/sketch_up_model.rbs +54 -0
  106. data/sig/layout/style.rbs +150 -0
  107. data/sig/layout/table.rbs +17 -0
  108. data/sig/layout/table_cell.rbs +13 -0
  109. data/sig/layout/table_column.rbs +10 -0
  110. data/sig/layout/table_row.rbs +10 -0
  111. data/sig/layout.rbs +4 -0
  112. data/sig/length.rbs +37 -0
  113. data/sig/numeric.rbs +23 -0
  114. data/sig/sketchup/animation.rbs +8 -0
  115. data/sig/sketchup/app_observer.rbs +11 -0
  116. data/sig/sketchup/arc_curve.rbs +14 -0
  117. data/sig/sketchup/attribute_dictionaries.rbs +11 -0
  118. data/sig/sketchup/attribute_dictionary.rbs +18 -0
  119. data/sig/sketchup/axes.rbs +13 -0
  120. data/sig/sketchup/behavior.rbs +19 -0
  121. data/sig/sketchup/camera.rbs +33 -0
  122. data/sig/sketchup/classification_schema.rbs +8 -0
  123. data/sig/sketchup/classifications.rbs +12 -0
  124. data/sig/sketchup/color.rbs +22 -0
  125. data/sig/sketchup/component_definition.rbs +43 -0
  126. data/sig/sketchup/component_instance.rbs +32 -0
  127. data/sig/sketchup/console.rbs +8 -0
  128. data/sig/sketchup/construction_line.rbs +17 -0
  129. data/sig/sketchup/construction_point.rbs +5 -0
  130. data/sig/sketchup/curve.rbs +13 -0
  131. data/sig/sketchup/definition_list.rbs +26 -0
  132. data/sig/sketchup/definition_observer.rbs +6 -0
  133. data/sig/sketchup/definitions_observer.rbs +8 -0
  134. data/sig/sketchup/dimension.rbs +18 -0
  135. data/sig/sketchup/dimension_linear.rbs +24 -0
  136. data/sig/sketchup/dimension_observer.rbs +5 -0
  137. data/sig/sketchup/dimension_radial.rbs +9 -0
  138. data/sig/sketchup/drawingelement.rbs +18 -0
  139. data/sig/sketchup/edge.rbs +24 -0
  140. data/sig/sketchup/edge_use.rbs +13 -0
  141. data/sig/sketchup/entities.rbs +61 -0
  142. data/sig/sketchup/entities_builder.rbs +15 -0
  143. data/sig/sketchup/entities_observer.rbs +9 -0
  144. data/sig/sketchup/entity.rbs +21 -0
  145. data/sig/sketchup/entity_observer.rbs +6 -0
  146. data/sig/sketchup/environment.rbs +25 -0
  147. data/sig/sketchup/environments.rbs +18 -0
  148. data/sig/sketchup/environments_observer.rbs +8 -0
  149. data/sig/sketchup/extensions_manager.rbs +11 -0
  150. data/sig/sketchup/face.rbs +44 -0
  151. data/sig/sketchup/frame_change_observer.rbs +5 -0
  152. data/sig/sketchup/group.rbs +38 -0
  153. data/sig/sketchup/http/request.rbs +17 -0
  154. data/sig/sketchup/http/response.rbs +7 -0
  155. data/sig/sketchup/http.rbs +27 -0
  156. data/sig/sketchup/image.rbs +23 -0
  157. data/sig/sketchup/image_rep.rbs +17 -0
  158. data/sig/sketchup/importer.rbs +14 -0
  159. data/sig/sketchup/input_point.rbs +25 -0
  160. data/sig/sketchup/instance_observer.rbs +6 -0
  161. data/sig/sketchup/instance_path.rbs +20 -0
  162. data/sig/sketchup/layer.rbs +20 -0
  163. data/sig/sketchup/layer_folder.rbs +26 -0
  164. data/sig/sketchup/layers.rbs +30 -0
  165. data/sig/sketchup/layers_observer.rbs +13 -0
  166. data/sig/sketchup/licensing/extension_license.rbs +8 -0
  167. data/sig/sketchup/licensing.rbs +15 -0
  168. data/sig/sketchup/line_style.rbs +5 -0
  169. data/sig/sketchup/line_styles.rbs +13 -0
  170. data/sig/sketchup/load_handler.rbs +8 -0
  171. data/sig/sketchup/loop.rbs +10 -0
  172. data/sig/sketchup/material.rbs +74 -0
  173. data/sig/sketchup/materials.rbs +22 -0
  174. data/sig/sketchup/materials_observer.rbs +10 -0
  175. data/sig/sketchup/menu.rbs +9 -0
  176. data/sig/sketchup/model.rbs +105 -0
  177. data/sig/sketchup/model_observer.rbs +23 -0
  178. data/sig/sketchup/options_manager.rbs +12 -0
  179. data/sig/sketchup/options_provider.rbs +23 -0
  180. data/sig/sketchup/options_provider_observer.rbs +5 -0
  181. data/sig/sketchup/overlay.rbs +21 -0
  182. data/sig/sketchup/overlays_manager.rbs +10 -0
  183. data/sig/sketchup/page.rbs +55 -0
  184. data/sig/sketchup/pages.rbs +25 -0
  185. data/sig/sketchup/pages_observer.rbs +7 -0
  186. data/sig/sketchup/pick_helper.rbs +28 -0
  187. data/sig/sketchup/regional_settings.rbs +7 -0
  188. data/sig/sketchup/rendering_options.rbs +89 -0
  189. data/sig/sketchup/rendering_options_observer.rbs +5 -0
  190. data/sig/sketchup/section_plane.rbs +12 -0
  191. data/sig/sketchup/selection.rbs +31 -0
  192. data/sig/sketchup/selection_observer.rbs +8 -0
  193. data/sig/sketchup/set.rbs +15 -0
  194. data/sig/sketchup/shadow_info.rbs +18 -0
  195. data/sig/sketchup/shadow_info_observer.rbs +5 -0
  196. data/sig/sketchup/skp.rbs +5 -0
  197. data/sig/sketchup/snap.rbs +10 -0
  198. data/sig/sketchup/style.rbs +9 -0
  199. data/sig/sketchup/styles.rbs +21 -0
  200. data/sig/sketchup/text.rbs +22 -0
  201. data/sig/sketchup/texture.rbs +14 -0
  202. data/sig/sketchup/texture_writer.rbs +14 -0
  203. data/sig/sketchup/tool.rbs +45 -0
  204. data/sig/sketchup/tools.rbs +14 -0
  205. data/sig/sketchup/tools_observer.rbs +6 -0
  206. data/sig/sketchup/uv_helper.rbs +6 -0
  207. data/sig/sketchup/vertex.rbs +11 -0
  208. data/sig/sketchup/view.rbs +87 -0
  209. data/sig/sketchup/view_observer.rbs +6 -0
  210. data/sig/sketchup.rbs +137 -0
  211. data/sig/sketchup_extension.rbs +23 -0
  212. data/sig/string.rbs +5 -0
  213. data/sig/ui/command.rbs +20 -0
  214. data/sig/ui/html_dialog.rbs +29 -0
  215. data/sig/ui/notification.rbs +16 -0
  216. data/sig/ui/toolbar.rbs +18 -0
  217. data/sig/ui/web_dialog.rbs +38 -0
  218. data/sig/ui.rbs +66 -0
  219. metadata +204 -287
  220. data/ext/attribute_dictionaries.h +0 -8
  221. data/ext/attribute_dictionary.h +0 -8
  222. data/ext/behavior.h +0 -8
  223. data/ext/color.h +0 -8
  224. data/ext/component_definition.h +0 -8
  225. data/ext/component_instance.h +0 -8
  226. data/ext/definition_list.h +0 -8
  227. data/ext/drawing_element.h +0 -8
  228. data/ext/entities.h +0 -8
  229. data/ext/entity.h +0 -8
  230. data/ext/material.h +0 -8
  231. data/ext/materials.h +0 -8
  232. data/ext/model.h +0 -8
  233. data/ext/not_implemented.c +0 -88
  234. data/ext/not_implemented.h +0 -20
  235. data/ext/sketchup.h +0 -9
  236. data/ext/texture.h +0 -8
  237. data/ext/typed_value.c +0 -84
  238. data/ext/typed_value.h +0 -11
  239. data/ext/utils.h +0 -111
  240. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeometry.dylib +0 -0
  241. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeoutils.dylib +0 -0
  242. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonImage.dylib +0 -4
  243. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonPreferences.dylib +0 -0
  244. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUnits.dylib +0 -0
  245. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUtils.dylib +0 -0
  246. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonZip.dylib +0 -0
  247. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
  248. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
  249. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -262
  250. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
  251. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
  252. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
  253. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
  254. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -70
  255. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
  256. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
  257. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
  258. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
  259. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
  260. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
  261. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
  262. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
  263. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
  264. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -154
  265. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
  266. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -187
  267. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
  268. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
  269. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
  270. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
  271. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
  272. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
  273. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
  274. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
  275. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
  276. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
  277. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
  278. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -629
  279. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition_snap_to_behavior_private.h +0 -46
  280. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
  281. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
  282. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -147
  283. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -224
  284. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
  285. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
  286. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
  287. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
  288. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
  289. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
  290. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
  291. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
  292. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -879
  293. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -189
  294. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
  295. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
  296. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environment.h +0 -382
  297. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environments.h +0 -133
  298. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -702
  299. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
  300. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
  301. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -695
  302. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -245
  303. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
  304. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
  305. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -289
  306. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
  307. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
  308. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
  309. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
  310. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
  311. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
  312. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
  313. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
  314. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -797
  315. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
  316. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1826
  317. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_entity_type_private.h +0 -44
  318. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
  319. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
  320. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
  321. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
  322. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
  323. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -180
  324. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -1016
  325. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
  326. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
  327. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
  328. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
  329. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
  330. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
  331. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/snap.h +0 -183
  332. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/space.h +0 -26
  333. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
  334. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -192
  335. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -392
  336. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -380
  337. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
  338. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
  339. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
  340. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
  341. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -125
  342. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
  343. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
  344. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
  345. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
  346. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
  347. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
  348. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
  349. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -891
  350. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
  351. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
  352. data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
  353. data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
  354. data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
  355. data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
  356. data/sketchup-sdk-win/binaries/layout/x64/LayOutView.dll +0 -4
  357. data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
  358. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
  359. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
  360. data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
  361. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
  362. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
  363. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
  364. data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
  365. data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
  366. data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
  367. data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
  368. data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
  369. data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
  370. data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
  371. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
  372. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
  373. data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
  374. data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
  375. data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
  376. data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -937
  377. data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -78
  378. data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
  379. data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -402
  380. data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
  381. data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
  382. data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
  383. data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
  384. data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -244
  385. data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
  386. data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
  387. data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
  388. data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
  389. data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
  390. data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
  391. data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -508
  392. data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -331
  393. data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
  394. data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
  395. data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
  396. data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
  397. data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
  398. data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -681
  399. data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1116
  400. data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -472
  401. data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -180
  402. data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
  403. data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
  404. data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -262
  405. data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
  406. data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
  407. data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
  408. data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
  409. data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -70
  410. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
  411. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
  412. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
  413. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
  414. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
  415. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
  416. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
  417. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
  418. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
  419. data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -154
  420. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
  421. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -187
  422. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
  423. data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
  424. data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
  425. data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
  426. data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
  427. data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
  428. data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
  429. data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
  430. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
  431. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
  432. data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
  433. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -629
  434. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition_snap_to_behavior_private.h +0 -46
  435. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
  436. data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
  437. data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -147
  438. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -224
  439. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
  440. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
  441. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
  442. data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
  443. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
  444. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
  445. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
  446. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
  447. data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -879
  448. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -189
  449. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
  450. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
  451. data/sketchup-sdk-win/headers/SketchUpAPI/model/environment.h +0 -382
  452. data/sketchup-sdk-win/headers/SketchUpAPI/model/environments.h +0 -133
  453. data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -702
  454. data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
  455. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
  456. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -695
  457. data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -245
  458. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
  459. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
  460. data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -289
  461. data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
  462. data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
  463. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
  464. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
  465. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
  466. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
  467. data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
  468. data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
  469. data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -797
  470. data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
  471. data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1826
  472. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_entity_type_private.h +0 -44
  473. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
  474. data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
  475. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
  476. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
  477. data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
  478. data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -180
  479. data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -1016
  480. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
  481. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
  482. data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
  483. data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
  484. data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
  485. data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
  486. data/sketchup-sdk-win/headers/SketchUpAPI/model/snap.h +0 -183
  487. data/sketchup-sdk-win/headers/SketchUpAPI/model/space.h +0 -26
  488. data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
  489. data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -192
  490. data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -392
  491. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -380
  492. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
  493. data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
  494. data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
  495. data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
  496. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -125
  497. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
  498. data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
  499. data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
  500. data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
  501. data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
@@ -1,117 +0,0 @@
1
- // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_LAYER_INSTANCE_H_
5
- #define LAYOUT_MODEL_LAYER_INSTANCE_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/model/defs.h>
9
-
10
- /**
11
- @struct LOLayerInstanceRef
12
- @brief References a layer instance. A layer instance provides access to the
13
- entities that are drawn on a given layer, as well as the draw order of
14
- those entities. Groups are not included in the list of entities
15
- associated with a layer instance, since the group hierarchy has no
16
- effect on entity draw order. Each page has one layer instance for each
17
- layer in the document. Non-shared layer instances are unique per page,
18
- while shared layer instances are shared across all pages of the
19
- document.
20
- */
21
-
22
- #ifdef __cplusplus
23
- extern "C" {
24
- #endif // __cplusplus
25
-
26
- /**
27
- @brief Gets the number of entities associated with a layer instance.
28
- @param[in] layer_instance The layer instance object.
29
- @param[out] number_of_entities The number of entities associated with the layer
30
- instance.
31
- @return
32
- - \ref SU_ERROR_NONE on success
33
- - \ref SU_ERROR_INVALID_INPUT if layer_instance does not refer to a valid object
34
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if number_of_entities is NULL
35
- */
36
- LO_RESULT LOLayerInstanceGetNumberOfEntities(
37
- LOLayerInstanceRef layer_instance, size_t* number_of_entities);
38
-
39
- /**
40
- @brief Gets the entity at the given index of a layer instance's draw order.
41
- @param[in] layer_instance The layer instance object.
42
- @param[in] index The index of the entity to get.
43
- @param[out] entity The entity object.
44
- @return
45
- - \ref SU_ERROR_NONE on success
46
- - \ref SU_ERROR_INVALID_INPUT if layer_instance does not refer to a valid object
47
- - \ref SU_ERROR_OUT_OF_RANGE if index out of range
48
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if entity is NULL
49
- - \ref SU_ERROR_OVERWRITE_VALID if *entity already refers to a valid object
50
- */
51
- LO_RESULT LOLayerInstanceGetEntityAtIndex(
52
- LOLayerInstanceRef layer_instance, size_t index, LOEntityRef* entity);
53
-
54
- /**
55
- @brief Gets the index of the given entity on the layer instance.
56
- @since LayOut 2018, API 3.0
57
- @param[in] layer_instance The layer instance object.
58
- @param[in] entity The entity object.
59
- @param[out] index The index of the entity.
60
- @return
61
- - \ref SU_ERROR_NONE on success
62
- - \ref SU_ERROR_INVALID_INPUT if layer_instance does not refer to a valid object
63
- - \ref SU_ERROR_INVALID_ARGUMENT if entity is not on layer_instance
64
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if index is NULL
65
- */
66
- LO_RESULT LOLayerInstanceGetIndexOfEntity(
67
- LOLayerInstanceRef layer_instance, LOEntityRef entity, size_t* index);
68
-
69
- /**
70
- @brief Populates a \ref LOEntityListRef with all the entities associated with a
71
- layer instance, ordered by their draw order.
72
- @param[in] layer_instance The layer instance object.
73
- @param[out] entity_list The entity list to populate.
74
- @return
75
- - \ref SU_ERROR_NONE on success
76
- - \ref SU_ERROR_INVALID_INPUT if layer_instance does not refer to a valid object
77
- - \ref SU_ERROR_INVALID_INPUT if entity_list does not refer to a valid object
78
- */
79
- LO_RESULT LOLayerInstanceGetEntities(
80
- LOLayerInstanceRef layer_instance, LOEntityListRef entity_list);
81
-
82
- /**
83
- @brief Moves the entity to the specified index within a layer instance's draw
84
- order. The entity must already belong to the layer instance that is
85
- passed in.
86
- @param[in] layer_instance The layer instance object.
87
- @param[in] entity The entity object.
88
- @param[in] index The index to move the entity to.
89
- @return
90
- - \ref SU_ERROR_NONE on success
91
- - \ref SU_ERROR_INVALID_INPUT if layer_instance does not refer to a valid object
92
- - \ref SU_ERROR_INVALID_INPUT if entity does not refer to a valid object
93
- - \ref SU_ERROR_INVALID_INPUT if entity does not belong to the given layer
94
- instance
95
- - \ref SU_ERROR_OUT_OF_RANGE if index is out of range
96
- */
97
- LO_RESULT LOLayerInstanceReorderEntity(
98
- LOLayerInstanceRef layer_instance, LOEntityRef entity, size_t index);
99
-
100
- /**
101
- @brief Gets the layer definition that a layer instance is associated with.
102
- @param[in] layer_instance The layer instance object.
103
- @param[out] layer_definition The layer definition object.
104
- @return
105
- - \ref SU_ERROR_NONE on success
106
- - \ref SU_ERROR_INVALID_INPUT if layer_instance does not refer to a valid object
107
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if layer_definition is NULL
108
- - \ref SU_ERROR_OVERWRITE_VALID if *layer_definition already refers to a valid object
109
- */
110
- LO_RESULT LOLayerInstanceGetLayerDefinition(
111
- LOLayerInstanceRef layer_instance, LOLayerRef* layer_definition);
112
-
113
- #ifdef __cplusplus
114
- } // end extern "C"
115
- #endif // __cplusplus
116
-
117
- #endif // LAYOUT_MODEL_LAYER_INSTANCE_H_
@@ -1,69 +0,0 @@
1
- // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_LAYER_LIST_H_
5
- #define LAYOUT_MODEL_LAYER_LIST_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/model/defs.h>
9
-
10
- /**
11
- @struct LOLayerListRef
12
- @brief References an ordered, indexable list of \ref LOLayerRef objects.
13
- */
14
-
15
- #ifdef __cplusplus
16
- extern "C" {
17
- #endif // __cplusplus
18
-
19
- /**
20
- @brief Creates a new empty layer list object.
21
- @param[out] layer_list The layer definition list object.
22
- @return
23
- - \ref SU_ERROR_NONE on success
24
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if layer_list is NULL
25
- - \ref SU_ERROR_OVERWRITE_VALID if *layer_list already refers to a valid object
26
- */
27
- LO_RESULT LOLayerListCreate(LOLayerListRef* layer_list);
28
-
29
- /**
30
- @brief Releases a layer list object. *layer_list will be set to invalid by this
31
- function.
32
- @param[in] layer_list The layer definition list object.
33
- @return
34
- - \ref SU_ERROR_NONE on success
35
- - \ref SU_ERROR_NULL_POINTER_INPUT if layer_list is NULL
36
- - \ref SU_ERROR_INVALID_INPUT if *layer_list does not refer to a valid object
37
- */
38
- LO_RESULT LOLayerListRelease(LOLayerListRef* layer_list);
39
-
40
- /**
41
- @brief Gets the number of layer definitions in the list.
42
- @param[in] layer_list The layer definition list object.
43
- @param[out] num_layers The number of layer definitions in the list.
44
- @return
45
- - \ref SU_ERROR_NONE on success
46
- - \ref SU_ERROR_INVALID_INPUT if layer_list does not refer to a valid object
47
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if num_layers is NULL
48
- */
49
- LO_RESULT LOLayerListGetNumberOfLayers(LOLayerListRef layer_list, size_t* num_layers);
50
-
51
- /**
52
- @brief Gets the layer definition at the specified index.
53
- @param[in] layer_list The layer definition list object.
54
- @param[in] index The index of the layer definition object to get.
55
- @param[out] layer The layer definition object.
56
- @return
57
- - \ref SU_ERROR_NONE on success
58
- - \ref SU_ERROR_INVALID_INPUT if layer_list does not refer to a valid object
59
- - \ref SU_ERROR_OUT_OF_RANGE if index is out of range for this list
60
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if layer is NULL
61
- - \ref SU_ERROR_OVERWRITE_VALID if *layer already refers to a valid object
62
- */
63
- LO_RESULT LOLayerListGetLayerAtIndex(LOLayerListRef layer_list, size_t index, LOLayerRef* layer);
64
-
65
- #ifdef __cplusplus
66
- } // end extern "C"
67
- #endif // __cplusplus
68
-
69
- #endif // LAYOUT_MODEL_LAYER_LIST_H_
@@ -1,508 +0,0 @@
1
- // Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
- // This file is intended for public distribution.
3
-
4
- #ifndef LAYOUT_MODEL_LINEARDIMENSION_H_
5
- #define LAYOUT_MODEL_LINEARDIMENSION_H_
6
-
7
- #include <LayOutAPI/common.h>
8
- #include <LayOutAPI/geometry/geometry.h>
9
- #include <LayOutAPI/model/defs.h>
10
-
11
- /**
12
- @struct LOLinearDimensionRef
13
- @brief References a linear dimension entity. A linear dimension is composed of
14
- the following sub-entities:
15
- - two 'extension lines' that connect to the entity being dimensioned.
16
- - a 'dimension line' connecting the ends of the leaders.
17
- (this may be represented by one or two paths depending on appearance.)
18
- - an optional 'leader line' that is used for small dimensions.
19
- - a 'dimension text' that displays the dimension's text.
20
-
21
- There are six points that may be modified for a linear dimension:
22
- - two 'connection points' that define the start and end of the
23
- dimension.
24
- - two 'extent points' that define the start and end of the dimension
25
- line and are the ends of the two extension lines.
26
- - two 'offset points' that define the starting points of the extension
27
- lines.
28
- */
29
-
30
- #ifdef __cplusplus
31
- extern "C" {
32
- #endif // __cplusplus
33
-
34
- /**
35
- @enum LOLinearDimensionLeaderLineType
36
- @brief Defines the different types of leader lines for a linear dimension entity.
37
- */
38
- typedef enum {
39
- LOLinearDimensionLeaderLineType_SingleSegment = 0, ///< Single segment leader line.
40
- LOLinearDimensionLeaderLineType_TwoSegment, ///< Two segment leader line.
41
- LOLinearDimensionLeaderLineType_Bezier, ///< Curved Bezier leader line.
42
- LOLinearDimensionLeaderLineType_Hidden, ///< No visible leader line.
43
- LONumLinearDimensionLeaderLineTypes
44
- } LOLinearDimensionLeaderLineType;
45
-
46
- /**
47
- @enum LOLinearDimensionAlignment
48
- @brief Defines how the dimension line should align on the page when creating a new linear dimension.
49
- @since LayOut 2026.0, API 11.0
50
- */
51
- typedef enum {
52
- LOLinearDimensionAlignment_Aligned = 0, /// Align the dimension line with the connection points.
53
- LOLinearDimensionAlignment_Vertical, /// Align the dimension line vertically on the paper.
54
- LOLinearDimensionAlignment_Horizontal, /// Align the dimension line horizontally on the paper.
55
- LONumLinearDimensionAlignments
56
- } LOLinearDimensionAlignment;
57
-
58
- /**
59
- @brief Creates a new disconnected linear dimension object.
60
- @param[out] dimension The linear dimension object
61
- @param[in] start_point Where the dimension should start
62
- @param[in] end_point Where the dimension should end
63
- @param[in] height Distance from the start and end points to the dimension line
64
- @note This is equivalent to using LOLinearDimensionCreateWithAlignment with
65
- \ref LOLinearDimensionAlignment_Aligned.
66
- @return
67
- - \ref SU_ERROR_NONE on success
68
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if dimension is NULL
69
- - \ref SU_ERROR_OVERWRITE_VALID if *dimension already refers to a valid object
70
- - \ref SU_ERROR_NULL_POINTER_INPUT if start_point is NULL
71
- - \ref SU_ERROR_NULL_POINTER_INPUT if end_point is NULL
72
- */
73
- LO_RESULT LOLinearDimensionCreate(
74
- LOLinearDimensionRef* dimension, const LOPoint2D* start_point, const LOPoint2D* end_point,
75
- double height);
76
-
77
- /**
78
- @brief Creates a new disconnected linear dimension object with a specific dimension line alignment.
79
- @param[out] dimension The linear dimension object
80
- @param[in] start_point Where the dimension should start
81
- @param[in] end_point Where the dimension should end
82
- @param[in] height Distance from the start point to the dimension line. Negative height will
83
- create a dimension line to the left or down from the connection points
84
- @param[in] alignment Dimension line alignment type. The dimension line can be horizontal,
85
- vertical, or aligned with the connection points.
86
- @since LayOut 2026.0, API 11.0
87
- @return
88
- - \ref SU_ERROR_NONE on success
89
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p dimension is NULL
90
- - \ref SU_ERROR_OVERWRITE_VALID if *dimension already refers to a valid object
91
- - \ref SU_ERROR_NULL_POINTER_INPUT if \p start_point is NULL
92
- - \ref SU_ERROR_NULL_POINTER_INPUT if \p end_point is NULL
93
- - \ref SU_ERROR_OUT_OF_RANGE if \p alignment is not a valid value
94
- - \ref SU_ERROR_INVALID_ARGUMENT if the combination of start_point, end_point, and alignment can't
95
- create a valid dimension.
96
- */
97
- LO_RESULT LOLinearDimensionCreateWithAlignment(
98
- LOLinearDimensionRef* dimension, const LOPoint2D* start_point, const LOPoint2D* end_point,
99
- double height, LOLinearDimensionAlignment alignment);
100
-
101
- /**
102
- @brief Adds a reference to a linear dimension object.
103
- @param[in] dimension The linear dimension object.
104
- @return
105
- - \ref SU_ERROR_NONE on success
106
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
107
- */
108
- LO_RESULT LOLinearDimensionAddReference(LOLinearDimensionRef dimension);
109
-
110
- /**
111
- @brief Releases a linear dimension object. The object will be invalidated if
112
- releasing the last reference.
113
- @param[in] dimension The linear dimension object.
114
- @return
115
- - \ref SU_ERROR_NONE on success
116
- - \ref SU_ERROR_NULL_POINTER_INPUT if dimension is NULL
117
- - \ref SU_ERROR_INVALID_INPUT if *dimension does not refer to a valid object
118
- */
119
- LO_RESULT LOLinearDimensionRelease(LOLinearDimensionRef* dimension);
120
-
121
- /**
122
- @brief Converts from a \ref LOEntityRef to a \ref LOLinearDimensionRef.
123
- This is essentially a downcast operation so the given \ref LOEntityRef
124
- must be convertible to a \ref LOLinearDimensionRef.
125
- @param[in] entity The entity object.
126
- @return
127
- - The converted \ref LOLinearDimensionRef if the downcast operation succeeds
128
- - If not, the returned reference will be invalid
129
- */
130
- LO_EXPORT LOLinearDimensionRef LOLinearDimensionFromEntity(LOEntityRef entity);
131
-
132
- /**
133
- @brief Converts from a \ref LOLinearDimensionRef to a \ref LOEntityRef.
134
- This is essentially an upcast operation.
135
- @param[in] dimension The linear dimension object.
136
- @return
137
- - The converted \ref LOEntityRef if dimension is a valid object
138
- - If not, the returned reference will be invalid
139
- */
140
- LO_EXPORT LOEntityRef LOLinearDimensionToEntity(LOLinearDimensionRef dimension);
141
-
142
- /**
143
- @brief Creates the entities that represent the dimension in its exploded form
144
- and adds them to a \ref LOEntityListRef. It is NOT necessary to
145
- explicitly release these entities, since \ref LOEntityListRef itself
146
- adds a reference to the entities and will release them when they are
147
- removed from the list or when the list is released. Depending on the
148
- appearance of the dimension being exploded, this may return anywhere from
149
- four to six entities. Start extension line, end extension line,
150
- one or two dimension lines, dimension text, optional leader line.
151
- @param[in] dimension The linear dimension object.
152
- @param[in] entity_list The entity list object to add the new entities to.
153
- @return
154
- - \ref SU_ERROR_NONE on success
155
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
156
- - \ref SU_ERROR_INVALID_INPUT if entity_list does not refer to a valid object
157
- */
158
- LO_RESULT LOLinearDimensionGetExplodedEntities(
159
- LOLinearDimensionRef dimension, LOEntityListRef entity_list);
160
-
161
- /**
162
- @brief Gets whether or not the dimension text uses custom text. When
163
- true, the dimension text will display a custom string that doesn't
164
- change. When false, the dimension text will display the length
165
- measurement and will update automatically.
166
- @param[in] dimension The linear dimension object.
167
- @param[out] use_custom_text Whether the dimension uses custom text.
168
- @return
169
- - \ref SU_ERROR_NONE on success
170
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
171
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if use_auto_text is NULL
172
- */
173
- LO_RESULT LOLinearDimensionGetUsesCustomText(LOLinearDimensionRef dimension, bool* use_custom_text);
174
-
175
- /**
176
- @brief Sets whether or not the dimension text uses custom text. When true, the
177
- dimension text will display a custom string that doesn't change. When
178
- false, the dimension text will display the length measurement and will
179
- update automatically.
180
- @param[in] dimension The linear dimension object.
181
- @param[in] use_custom_text Whether or not the dimension should use custom text.
182
- @return
183
- - \ref SU_ERROR_NONE on success
184
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
185
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
186
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
187
- */
188
- LO_RESULT LOLinearDimensionSetUsesCustomText(LOLinearDimensionRef dimension, bool use_custom_text);
189
-
190
- /**
191
- @brief Creates a copy of the dimension text's \ref LOFormattedTextRef object.
192
- @note With the addition of auto-text in dimensions for LayOut 2019.2, the
193
- copy of the dimension text incorrectly provided the plain text when
194
- requesting the display text. This has been fixed in LayOut 2020.1, API 5.1.
195
- @param[in] dimension The linear dimension object.
196
- @param[out] text The formatted text object.
197
- @return
198
- - \ref SU_ERROR_NONE on success
199
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
200
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if text is NULL
201
- - \ref SU_ERROR_OVERWRITE_VALID if *text already refers to a valid object
202
- */
203
- LO_RESULT LOLinearDimensionCreateDimensionTextCopy(
204
- LOLinearDimensionRef dimension, LOFormattedTextRef* text);
205
-
206
- /**
207
- @brief Sets the text of the dimension from a \ref LOFormattedTextRef object.
208
- The dimension lines may be adjusted if the text has been re-positioned.
209
- @param[in] dimension The linear dimension object.
210
- @param[in] text The formatted text object.
211
- @return
212
- - \ref SU_ERROR_NONE on success
213
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
214
- - \ref SU_ERROR_INVALID_INPUT if text does not refer to a valid object
215
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
216
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
217
- */
218
- LO_RESULT LOLinearDimensionSetDimensionText(
219
- LOLinearDimensionRef dimension, LOFormattedTextRef text);
220
-
221
- /**
222
- @brief Gets the type of leader line the linear dimension is using.
223
- @param[in] dimension The linear dimension object.
224
- @param[out] leader_line_type The leader line type.
225
- @return
226
- - \ref SU_ERROR_NONE on success
227
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
228
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if leader_line_type is NULL
229
- */
230
- LO_RESULT LOLinearDimensionGetLeaderLineType(
231
- LOLinearDimensionRef dimension, LOLinearDimensionLeaderLineType* leader_line_type);
232
-
233
- /**
234
- @brief Sets the type of leader line the linear dimension is using. New control
235
- points will be generated if changing to a two segment or bezier leader
236
- line type. Setting the leader line type to \ref
237
- LOLinearDimensionLeaderLineType_Hidden will not move the dimension text.
238
- @param[in] dimension The linear dimension object.
239
- @param[in] leader_line_type The leader line type.
240
- @return
241
- - \ref SU_ERROR_NONE on success
242
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
243
- - \ref SU_ERROR_OUT_OF_RANGE if leader_line_type is not a valid value
244
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
245
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
246
- */
247
- LO_RESULT LOLinearDimensionSetLeaderLineType(
248
- LOLinearDimensionRef dimension, LOLinearDimensionLeaderLineType leader_line_type);
249
-
250
- /**
251
- @brief Gets whether the linear dimension's leader line is visible.
252
- @note This will return false if the leader line type is set to hidden or the leader line's
253
- length is zero.
254
- @since LayOut 2026.0, API 11.0
255
- @param[in] dimension The linear dimension object.
256
- @param[out] leader_line_visible Whether the dimension's leader line is visible.
257
- @return
258
- - \ref SU_ERROR_NONE on success
259
- - \ref SU_ERROR_INVALID_INPUT if \p dimension does not refer to a valid object
260
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p leader_line_visible is NULL
261
- */
262
- LO_RESULT LOLinearDimensionGetLeaderLineVisible(
263
- LOLinearDimensionRef dimension, bool* leader_line_visible);
264
-
265
- /**
266
- @brief Gets whether or not the scale for the dimension length text is set
267
- automatically.
268
- @param[in] dimension The linear dimension object.
269
- @param[out] use_auto_scale Whether the dimension is using auto scale or not.
270
- @return
271
- - \ref SU_ERROR_NONE on success
272
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
273
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if use_auto_scale is NULL
274
- */
275
- LO_RESULT LOLinearDimensionGetUsesAutoScale(LOLinearDimensionRef dimension, bool* use_auto_scale);
276
-
277
- /**
278
- @brief Sets whether or not the scale for the dimension length text is set
279
- automatically.
280
- @param[in] dimension The linear dimension object.
281
- @param[in] use_auto_scale Whether the dimension should use auto scale or not.
282
- @return
283
- - \ref SU_ERROR_NONE on success
284
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
285
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
286
- */
287
- LO_RESULT LOLinearDimensionSetUsesAutoScale(LOLinearDimensionRef dimension, bool use_auto_scale);
288
-
289
- /**
290
- @brief Gets the scale being used for the dimension length text.
291
- @param[in] dimension The linear dimension object.
292
- @param[out] scale The dimension text scale.
293
- @return
294
- - \ref SU_ERROR_NONE on success
295
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
296
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if scale is NULL
297
- */
298
- LO_RESULT LOLinearDimensionGetScale(LOLinearDimensionRef dimension, double* scale);
299
-
300
- /**
301
- @brief Sets the scale being used for the dimension length text. This will also
302
- make the scale not use auto-scale.
303
- @param[in] dimension The linear dimension object.
304
- @param[in] scale The new scale to use.
305
- @return
306
- - \ref SU_ERROR_NONE on success
307
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
308
- - \ref SU_ERROR_OUT_OF_RANGE if scale is not positive or scale is greater than 1
309
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
310
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
311
- */
312
- LO_RESULT LOLinearDimensionSetScale(LOLinearDimensionRef dimension, double scale);
313
-
314
- /**
315
- @brief Gets the page location for the first connection.
316
- @param[in] dimension The linear dimension object.
317
- @param[out] point The position of the first connection point.
318
- @return
319
- - \ref SU_ERROR_NONE on success
320
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
321
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
322
- */
323
- LO_RESULT LOLinearDimensionGetStartConnectionPoint(
324
- LOLinearDimensionRef dimension, LOPoint2D* point);
325
-
326
- /**
327
- @brief Sets the page location for the first connection. This will cause the
328
- dimension to become disconnected. To make a connected dimension, call
329
- LOLinearDimensionConnectTo.
330
- @param[in] dimension The linear dimension object.
331
- @param[in] point The position for the first connection point.
332
- @return
333
- - \ref SU_ERROR_NONE on success
334
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
335
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
336
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
337
- */
338
- LO_RESULT LOLinearDimensionSetStartConnectionPoint(
339
- LOLinearDimensionRef dimension, LOPoint2D* point);
340
-
341
- /**
342
- @brief Gets the page location for the second connection. This will cause the
343
- dimension to become disconnected. To make a connected dimension, call
344
- LOLinearDimensionConnectTo.
345
- @param[in] dimension The linear dimension object.
346
- @param[out] point The position of the second control point.
347
- @return
348
- - \ref SU_ERROR_NONE on success
349
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
350
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
351
- */
352
- LO_RESULT LOLinearDimensionGetEndConnectionPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
353
-
354
- /**
355
- @brief Sets the page location for the second connection.
356
- @param[in] dimension The linear dimension object.
357
- @param[in] point The position for the second control point.
358
- @return
359
- - \ref SU_ERROR_NONE on success
360
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
361
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
362
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
363
- */
364
- LO_RESULT LOLinearDimensionSetEndConnectionPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
365
-
366
- /**
367
- @brief Gets the page location for the start of the dimension line.
368
- @param[in] dimension The linear dimension object.
369
- @param[out] point The position of the start of the dimension line.
370
- @return
371
- - \ref SU_ERROR_NONE on success
372
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
373
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
374
- */
375
- LO_RESULT LOLinearDimensionGetStartExtentPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
376
-
377
- /**
378
- @brief Sets the page location for the start of the dimension line. This will
379
- also adjust the end of the dimension line to maintain the correct
380
- dimension line length.
381
- @param[in] dimension The linear dimension object.
382
- @param[in] point The position of the start of the dimension line.
383
- @return
384
- - \ref SU_ERROR_NONE on success
385
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
386
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
387
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
388
- */
389
- LO_RESULT LOLinearDimensionSetStartExtentPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
390
-
391
- /**
392
- @brief Gets the page location for the end of the dimension line.
393
- @param[in] dimension The linear dimension object.
394
- @param[out] point The position of the end of the dimension line.
395
- @return
396
- - \ref SU_ERROR_NONE on success
397
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
398
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
399
- */
400
- LO_RESULT LOLinearDimensionGetEndExtentPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
401
-
402
- /**
403
- @brief Sets the page location for the end of the dimension line. This will
404
- also adjust the start of the dimension line to maintain the correct
405
- dimension line length.
406
- @param[in] dimension The linear dimension object.
407
- @param[in] point The position of the end of the dimension line.
408
- @return
409
- - \ref SU_ERROR_NONE on success
410
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
411
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
412
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
413
- */
414
- LO_RESULT LOLinearDimensionSetEndExtentPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
415
-
416
- /**
417
- @brief Gets the page location for the start of the first extension line. The
418
- first extension line runs from this offset point to the start extent
419
- point.
420
- @param[in] dimension The linear dimension object.
421
- @param[out] point The position of the start of the extension line.
422
- @return
423
- - \ref SU_ERROR_NONE on success
424
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
425
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
426
- */
427
- LO_RESULT LOLinearDimensionGetStartOffsetPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
428
-
429
- /**
430
- @brief Gets the page location for the start of the second extension line. The
431
- second extension line runs from this offset point to the end extent
432
- point.
433
- @param[in] dimension The linear dimension object.
434
- @param[out] point The position of the end of the dimension line.
435
- @return
436
- - \ref SU_ERROR_NONE on success
437
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
438
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
439
- */
440
- LO_RESULT LOLinearDimensionGetEndOffsetPoint(LOLinearDimensionRef dimension, LOPoint2D* point);
441
-
442
- /**
443
- @brief Sets the length of the offset from the first connection point to the
444
- start of the first extension line. The connection and extent points will
445
- not move.
446
- @param[in] dimension The linear dimension object.
447
- @param[in] length The length the offset to the extension line should be.
448
- @return
449
- - \ref SU_ERROR_NONE on success
450
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
451
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
452
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
453
- */
454
- LO_RESULT LOLinearDimensionSetStartOffsetLength(LOLinearDimensionRef dimension, double length);
455
-
456
- /**
457
- @brief Sets the length of the offset from the second connection point to the
458
- start of the second extension line. The connection and extent points
459
- will not move.
460
- @param[in] dimension The linear dimension object.
461
- @param[in] length The length the offset to the extension line should be.
462
- @return
463
- - \ref SU_ERROR_NONE on success
464
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
465
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
466
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
467
- */
468
- LO_RESULT LOLinearDimensionSetEndOffsetLength(LOLinearDimensionRef dimension, double length);
469
-
470
- /**
471
- @brief Connects the linear dimension to the given connection points. If both
472
- the linear dimension and the connection point's entities are on
473
- non-shared layers, they must be on the same page.
474
- @param[in] dimension The linear dimension object.
475
- @param[in] start_point The first connection point object.
476
- @param[in] end_point The second connection point object.
477
- @return
478
- - \ref SU_ERROR_NONE on success
479
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
480
- - \ref SU_ERROR_INVALID_INPUT if start_point does not refer to a valid object
481
- - \ref SU_ERROR_INVALID_INPUT if end_point does not refer to a valid object
482
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
483
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
484
- - \ref SU_ERROR_GENERIC if the linear dimension was unable to connect to the
485
- connection points
486
- */
487
- LO_RESULT LOLinearDimensionConnectTo(
488
- LOLinearDimensionRef dimension, LOConnectionPointRef start_point,
489
- LOConnectionPointRef end_point);
490
-
491
- /**
492
- @brief Disconnects the linear dimension from its connection points. The
493
- dimension will not be adjusted by disconnecting from its connection
494
- points.
495
- @param[in] dimension The linear dimension object.
496
- @return
497
- - \ref SU_ERROR_NONE on success
498
- - \ref SU_ERROR_INVALID_INPUT if dimension does not refer to a valid object
499
- - \ref SU_ERROR_LAYER_LOCKED if dimension is on a locked layer
500
- - \ref SU_ERROR_ENTITY_LOCKED if dimension is locked
501
- */
502
- LO_RESULT LOLinearDimensionDisconnect(LOLinearDimensionRef dimension);
503
-
504
- #ifdef __cplusplus
505
- } // end extern "C"
506
- #endif // __cplusplus
507
-
508
- #endif // LAYOUT_MODEL_LINEARDIMENSION_H_